annotations

package
v0.8.27 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 5 Imported by: 182 modules, 219 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSyncIdFromAnnotations added in v0.2.82

func GetSyncIdFromAnnotations(annos Annotations) (string, error)

NOTE: the store is the only usage of this.

Types

type Annotations

type Annotations []*anypb.Any

func New added in v0.1.11

func New(msgs ...proto.Message) Annotations

New - Convenience function to create annotations.

func (*Annotations) Append

func (a *Annotations) Append(msgs ...proto.Message)

Append appends the proto message to the annotations slice.

func (*Annotations) Contains

func (a *Annotations) Contains(msg proto.Message) bool

Contains checks if the message is in the annotations slice.

func (*Annotations) ContainsAny added in v0.2.93

func (a *Annotations) ContainsAny(msgs ...proto.Message) bool

func (*Annotations) Merge added in v0.1.39

func (a *Annotations) Merge(newAnnotations ...*anypb.Any)

func (*Annotations) Pick

func (a *Annotations) Pick(needle proto.Message) (bool, error)

Pick checks if the message is in the annotations slice.

func (*Annotations) Update

func (a *Annotations) Update(msg proto.Message)

Update updates the annotations slice.

func (*Annotations) WithRateLimiting

func (a *Annotations) WithRateLimiting(rateLimit *v2.RateLimitDescription) *Annotations

WithRateLimiting takes a pointer to a RateLimitDescription and appends it to the Annotations slice.

Jump to

Keyboard shortcuts

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