Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LabelSet ¶
LabelSet wraps a model.LabelSet together with its fingerprint, so that consumers which already know the fingerprint (for example because they hold the alert it came from) do not need to hash the labels again. The fingerprint is set at construction time and the labels must not be modified afterwards.
func FromModel ¶
FromModel returns a LabelSet wrapping ls, hashing it once to compute the fingerprint.
func New ¶
func New(ls model.LabelSet, fp model.Fingerprint) LabelSet
New returns a LabelSet wrapping ls with fp as its fingerprint. The fingerprint of ls must be fp.
func (LabelSet) Fingerprint ¶
func (l LabelSet) Fingerprint() model.Fingerprint
Fingerprint returns the fingerprint computed at construction time.
Click to show internal directories.
Click to hide internal directories.