Move DNS name mapping from endpoint to report

This commit is contained in:
Bryan Boreham
2018-02-20 16:14:21 +00:00
parent 6674ff61e5
commit b5cdcb9a42
7 changed files with 135 additions and 42 deletions
+13
View File
@@ -50,6 +50,19 @@ func (s StringSet) Intersection(b StringSet) StringSet {
return result
}
// Equal returns true if a and b have the same contents
func (s StringSet) Equal(b StringSet) bool {
if len(s) != len(b) {
return false
}
for i := range s {
if s[i] != b[i] {
return false
}
}
return true
}
// Add adds the strings to the StringSet. Add is the only valid way to grow a
// StringSet. Add returns the StringSet to enable chaining.
func (s StringSet) Add(strs ...string) StringSet {