authenticator

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator[T any, U any] interface {
	Authenticate(context.Context, U) (T, error)
}

func New

func New[T any, U any](fn func(context.Context, U) (T, error)) Authenticator[T, U]

type Function

type Function[T any, U any] func(context.Context, U) (T, error)

func (Function[T, U]) Authenticate

func (f Function[T, U]) Authenticate(ctx context.Context, input U) (T, error)

Jump to

Keyboard shortcuts

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