authentication

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokenExpirationBuffer = 30 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	// contains filtered or unexported fields
}

func NewAuthenticator

func NewAuthenticator(options *AuthenticatorOptions) *Authenticator

func (*Authenticator) GetToken

func (a *Authenticator) GetToken(ctx context.Context) (string, error)

type AuthenticatorOptions

type AuthenticatorOptions struct {
	// Deprecated: unused
	Ctx        context.Context
	ApiKey     string
	HttpClient http.Client
}

Jump to

Keyboard shortcuts

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