middleware

package
v0.0.0-...-5f01fc0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertUserFromRequest

func CertUserFromRequest(r *Request) (_ helper.User, ok bool)

func DeployEnvFromRequest

func DeployEnvFromRequest(r *Request) (_ string, ok bool)

func ExtendHandler

func ExtendHandler(handler Handler, extensions ...Middleware) Handler

func EyesOnly

func EyesOnly(handler Handler) Handler

func StrFromRequest

func StrFromRequest(request *Request, key string) (_ string, ok bool)

func Uint64FromRequest

func Uint64FromRequest(request *Request, key string) (_ uint64, ok bool)

func WithLocalDeployEnv

func WithLocalDeployEnv(handler Handler) Handler

Types

type FnAuthorize

type FnAuthorize = func(certID, certKey string) (helper.User, bool)

type Middleware

type Middleware = func(Handler) Handler

func WithOptionalAuthentication

func WithOptionalAuthentication(authorizer FnAuthorize) Middleware

func WithRequiredAuthentication

func WithRequiredAuthentication(authorizer FnAuthorize) Middleware

Jump to

Keyboard shortcuts

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