Documentation ¶
Index ¶
- type Middlewares
- func (m *Middlewares) Add(registrators ...Register)
- func (m *Middlewares) AddAuth(middleware request.Middleware)
- func (m *Middlewares) AddCORS(middleware request.Middleware)
- func (m *Middlewares) AddOther(middlewares ...request.Middleware)
- func (m *Middlewares) AddParams(middlewares ...request.Middleware)
- func (m *Middlewares) Handle(r *request.Request, w http.ResponseWriter) *response.AsObject
- type Register
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 ¶
func (m *Middlewares) Handle(r *request.Request, w http.ResponseWriter) *response.AsObject
type Register ¶
type Register func(middlewares *Middlewares)
Click to show internal directories.
Click to hide internal directories.