middlewares

package
v0.0.0-...-a839d2f Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middlewares

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

func New

func New(registrators ...Register) *Middlewares

func (*Middlewares) Add

func (m *Middlewares) Add(registrators ...Register)

func (*Middlewares) AddAuth

func (m *Middlewares) AddAuth(middleware request.Middleware)

func (*Middlewares) AddCORS

func (m *Middlewares) AddCORS(middleware request.Middleware)

func (*Middlewares) AddOther

func (m *Middlewares) AddOther(middlewares ...request.Middleware)

func (*Middlewares) AddParams

func (m *Middlewares) AddParams(middlewares ...request.Middleware)

func (*Middlewares) Handle

type Register

type Register func(middlewares *Middlewares)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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