Documentation ¶
Overview ¶
Package replay implements the Tagger replay.
Index ¶
- type Tagger
- func (t *Tagger) AccumulateTagsFor(entityID string, cardinality types.TagCardinality, tb tagset.TagsAccumulator) error
- func (t *Tagger) GetEntity(entityID string) (*types.Entity, error)
- func (t *Tagger) List() types.TaggerListResponse
- func (t *Tagger) LoadState(state map[string]*pb.Entity)
- func (t *Tagger) Standard(entityID string) ([]string, error)
- func (t *Tagger) Start(ctx context.Context) error
- func (t *Tagger) Stop() error
- func (t *Tagger) Subscribe(types.TagCardinality) chan []types.EntityEvent
- func (t *Tagger) Tag(entityID string, cardinality types.TagCardinality) ([]string, error)
- func (t *Tagger) Unsubscribe(chan []types.EntityEvent)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tagger ¶
Tagger stores tags to entity as stored in a replay state.
func NewTagger ¶
func NewTagger() *Tagger
NewTagger returns an allocated tagger. You still have to run Init() once the config package is ready.
func (*Tagger) AccumulateTagsFor ¶
func (t *Tagger) AccumulateTagsFor(entityID string, cardinality types.TagCardinality, tb tagset.TagsAccumulator) error
AccumulateTagsFor returns tags for a given entity at the desired cardinality.
func (*Tagger) GetEntity ¶
GetEntity returns the entity corresponding to the specified id and an error
func (*Tagger) List ¶
func (t *Tagger) List() types.TaggerListResponse
List returns all the entities currently stored by the tagger.
func (*Tagger) Start ¶
Start starts the connection to the replay tagger and starts watching for events.
func (*Tagger) Subscribe ¶
func (t *Tagger) Subscribe(types.TagCardinality) chan []types.EntityEvent
Subscribe does nothing in the replay tagger this tagger does not respond to events.
func (*Tagger) Unsubscribe ¶
func (t *Tagger) Unsubscribe(chan []types.EntityEvent)
Unsubscribe does nothing in the replay tagger this tagger does not respond to events.