middleware

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const MaxUsernamePasswordLength = 256

Variables

This section is empty.

Functions

This section is empty.

Types

type Basic

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

func NewBasic

func NewBasic(cfg *conf.Conf) *Basic

func (*Basic) Name

func (b *Basic) Name() string

func (*Basic) Serve

func (b *Basic) Serve(next http.Handler) http.Handler

type ClientIP

type ClientIP struct{}

func (ClientIP) Name

func (ClientIP) Name() string

func (ClientIP) Serve

func (ClientIP) Serve(next http.Handler) http.Handler

type MiddleWare

type MiddleWare interface {
	Name() string
	Serve(next http.Handler) http.Handler
}

func NewMiddleWares

func NewMiddleWares(cfg *conf.Conf) []MiddleWare

Jump to

Keyboard shortcuts

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