replay

package
v0.0.0-...-bdf9480 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tagger

type Tagger struct {
	// contains filtered or unexported fields
}

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 collectors.TagCardinality, tb tagset.TagAccumulator) error

AccumulateTagsFor returns tags for a given entity at the desired cardinality.

func (*Tagger) GetEntity

func (t *Tagger) GetEntity(entityID string) (*types.Entity, error)

GetEntity returns the entity corresponding to the specified id and an error

func (*Tagger) Init

func (t *Tagger) Init() error

Init initializes the connection to the replay tagger and starts watching for events.

func (*Tagger) List

List returns all the entities currently stored by the tagger.

func (*Tagger) LoadState

func (t *Tagger) LoadState(state map[string]*pb.Entity)

LoadState loads the state for the tagger from the supplied map.

func (*Tagger) Standard

func (t *Tagger) Standard(entityID string) ([]string, error)

Standard returns the standard tags for a given entity.

func (*Tagger) Stop

func (t *Tagger) Stop() error

Stop closes the connection to the replay tagger and stops event collection.

func (*Tagger) Subscribe

func (t *Tagger) Subscribe(cardinality collectors.TagCardinality) chan []types.EntityEvent

Subscribe does nothing in the replay tagger this tagger does not respond to events.

func (*Tagger) Tag

func (t *Tagger) Tag(entityID string, cardinality collectors.TagCardinality) ([]string, error)

Tag returns tags for a given entity at the desired cardinality.

func (*Tagger) Unsubscribe

func (t *Tagger) Unsubscribe(ch chan []types.EntityEvent)

Unsubscribe does nothing in the replay tagger this tagger does not respond to events.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL