Set is an ordered list of Tags.
type Set []Tag
func NewTagSetFromMap(m map[string]string) Set
NewTagSetFromMap creates a tag set from a map.
For more information about read preference tags, see https://www.mongodb.com/docs/manual/core/read-preference-tags/
func NewTagSetsFromMaps(maps []map[string]string) []Set
NewTagSetsFromMaps creates a list of tag sets from a slice of maps.
For more information about read preference tags, see https://www.mongodb.com/docs/manual/core/read-preference-tags/
func (ts Set) Contains(name, value string) bool
Contains indicates whether the name/value pair exists in the tagset.
func (ts Set) ContainsAll(other []Tag) bool
ContainsAll indicates whether all the name/value pairs exist in the tagset.
func (ts Set) String() string
String returns a human-readable human-readable description of the tagset.
Tag is a name/value pair.
type Tag struct { Name string Value string }
func (tag Tag) String() string
String returns a human-readable human-readable description of the tag.