Documentation
¶
Index ¶
- type Annotations
- func (a *Annotations) Append(msgs ...proto.Message)
- func (a *Annotations) Contains(msg proto.Message) bool
- func (a *Annotations) Pick(needle proto.Message) (bool, error)
- func (a *Annotations) Update(msg proto.Message)
- func (a *Annotations) WithRateLimiting(rateLimit *v2.RateLimitDescription) *Annotations
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotations ¶
func New ¶ added in v0.1.11
func New(msgs ...proto.Message) Annotations
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) 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.
Click to show internal directories.
Click to hide internal directories.