Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
Cache is a store for target groups. It provides thread safe updates and a way for obtaining all addresses from the stored target groups.
func (*Cache) Addresses ¶
Addresses returns all the addresses from all target groups present in the Cache.
func (*Cache) Update ¶
func (c *Cache) Update(tgs []*targetgroup.Group)
Update stores the targets for the given groups. Note: targets for a group are replaced entirely on update. If a group with no target is given this is equivalent to deleting all the targets for this group.
Click to show internal directories.
Click to hide internal directories.