preshared

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyAuthenticator

type KeyAuthenticator interface {
	Authenticate(ctx context.Context) error
}

KeyAuthenticator - Interface for key authenticator

type KeyAuthn

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

KeyAuthn - Authentication Keys Structure

func NewKeyAuthn

func NewKeyAuthn(_ context.Context, cfg config.Preshared) (*KeyAuthn, error)

NewKeyAuthn - Create New Authenticated Keys

func (*KeyAuthn) Authenticate

func (a *KeyAuthn) Authenticate(ctx context.Context) error

Authenticate - Checking whether any API request contain keys

Jump to

Keyboard shortcuts

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