Documentation ¶
Overview ¶
Package tag provides types for filtering replica set members using tags in a read preference.
For more information about read preference tags, see https://www.mongodb.com/docs/manual/core/read-preference-tags/
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set []Tag
Set is an ordered list of Tags.
func NewTagSetFromMap ¶
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 ¶
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 (Set) ContainsAll ¶
ContainsAll indicates whether all the name/value pairs exist in the tagset.