cache

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCachedToken

func GetCachedToken(config config.Config, privateKey *rsa.PrivateKey, metadataTokenHeader map[string]string, metadataTokenPayload map[string]string, metadataOauthRequest map[string]string) (string, error)

Types

type CachedToken

type CachedToken struct {
	TokenValue CachedTokenValue
	Mutex      sync.Mutex
}

type CachedTokenValue

type CachedTokenValue struct {
	Token      string
	Expiry     time.Time
	SoftExpiry time.Time
	Issued     time.Time
}

Jump to

Keyboard shortcuts

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