Documentation ¶ Index ¶ type Authenticator func New[T any, U any](fn func(context.Context, U) (T, error)) Authenticator[T, U] type Function func (f Function[T, U]) Authenticate(ctx context.Context, input U) (T, error) 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) Source Files ¶ View all Source files authenticator.go Click to show internal directories. Click to hide internal directories.