api

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallCounter

type CallCounter interface {
	AddLabel(name, value string)
}

type Names

type Names struct {
	// RawService is the unmodified service name
	RawService string

	// Service is the shortened service name (e.g. "svid.v1.SVID", "WorkloadAPI")
	Service string

	// Method is the method name (e.g. MintX509SVID)
	Method string

	// MetricKey is the metric key for the method
	MetricKey []string
}

type RateLimiter added in v1.2.0

type RateLimiter interface {
	RateLimit(ctx context.Context, count int) error
}

type RateLimiterFunc added in v1.2.0

type RateLimiterFunc func(ctx context.Context, count int) error

func (RateLimiterFunc) RateLimit added in v1.2.0

func (fn RateLimiterFunc) RateLimit(ctx context.Context, count int) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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