http

package
v0.0.0-...-f5bbbf4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const BasicSchema = "basic"
View Source
const BearerSchema = "bearer"

Variables

This section is empty.

Functions

func UserInfoFromContext

func UserInfoFromContext(ctx context.Context) *entities.UserInfo

func WithUserInfo

func WithUserInfo(ctx context.Context, reqCtx *entities.UserInfo) context.Context

Types

type AccessLog

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

func NewAccessLog

func NewAccessLog(accessLogger io.Writer) *AccessLog

func (*AccessLog) Middleware

func (a *AccessLog) Middleware(next http.Handler) http.Handler

type Auth

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

func NewAuth

func NewAuth(authenticator auth.Authenticator) *Auth

func (*Auth) Middleware

func (m *Auth) Middleware(next http.Handler) http.Handler

type NoAuth

type NoAuth struct {
}

func NewNoAuth

func NewNoAuth() *NoAuth

func (*NoAuth) Middleware

func (m *NoAuth) Middleware(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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