hub

package
v0.0.7-beta Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_QUOTA_WAIT               = 1 * time.Second
	CACHED_LEASE_CHECK_INTERVAL  = 200 * time.Millisecond // TODO: what should this be set to?
	BATCH_TOKEN_CONSUME_INTERVAL = 200 * time.Millisecond // TODO: what should this be set to?
)

Variables

This section is empty.

Functions

func NewTokenLeaseRequest

func NewTokenLeaseRequest(ctx context.Context, gn string, fn *string, pb *int32, dw *float32, tags *map[string]string) (context.Context, *hubv1.GetTokenLeaseRequest)

func ValidateTokens

func ValidateTokens(_ context.Context, guard string, tokens []string) (hubv1.Token, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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