authn

package
v0.0.0-...-d4a65ec Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator interface {
	Authenticate(context.Context) (string, error)
}

type NoopAuthenticator

type NoopAuthenticator struct{}

func (*NoopAuthenticator) Authenticate

func (a *NoopAuthenticator) Authenticate(ctx context.Context) (string, error)

type PresharedKeyAuthenticator

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

func NewPresharedKeyAuthenticator

func NewPresharedKeyAuthenticator(key string) *PresharedKeyAuthenticator

func (*PresharedKeyAuthenticator) Authenticate

func (a *PresharedKeyAuthenticator) Authenticate(ctx context.Context) (string, error)

Jump to

Keyboard shortcuts

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