api

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

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

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

type RateLimiterFunc

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

func (RateLimiterFunc) RateLimit

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