middleware

package
v0.0.0-...-8444db5 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(realm string, authFunc AuthFunc) func(http.Handler) http.Handler

func CtxUsername

func CtxUsername(ctx context.Context) (string, error)

Types

type AuthFunc

type AuthFunc func(ctx context.Context, username string, password string) (bool, error)

Jump to

Keyboard shortcuts

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