Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndpointKeyToProfileIDMap ¶
type EndpointKeyToProfileIDMap struct {
// contains filtered or unexported fields
}
func NewEndpointKeyToProfileIDMap ¶
func NewEndpointKeyToProfileIDMap() *EndpointKeyToProfileIDMap
type MatchCallback ¶
type TagIndex ¶
type TagIndex struct {
// contains filtered or unexported fields
}
A TagIndex dynamically calculates the matching tags for a set of endpoints. It generates events when endpoints start and stop matching "active" tags. Tags are marked active by calling the SetTagActive/SetTagInactive methods.
func NewIndex ¶
func NewIndex(onMatchStarted, onMatchStopped MatchCallback) *TagIndex
func (*TagIndex) OnUpdate ¶
OnUpdate is called when a datamodel update is received. It updates the index and fires the match-started/stopped callbacks as appropriate.
func (*TagIndex) RegisterWith ¶
func (idx *TagIndex) RegisterWith(dispatcher *dispatcher.Dispatcher)
func (*TagIndex) SetTagActive ¶
SetTagActive marks the given tag as active if it isn't already. If the tag becomes active and it matches endpoints, synchronously invokes the match-started callback for each matching endpoint.
func (*TagIndex) SetTagInactive ¶
SetTagInactive marks the given tag as inactive if it isn't already. If the tag becomes inactive and it matches endpoints, synchronously invokes the match-stopped callback for each matching endpoint.