Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Middleware ¶
Middleware function definition
func Cors ¶
func Cors(allowOrigin string) Middleware
Cors is a middleware to enabling CORS on HTTP requests
func Methods ¶
func Methods(methods ...string) Middleware
Methods is a middleware to check that the request use the correct HTTP method
type Middlewares ¶ added in v1.3.0
type Middlewares []Middleware
Middlewares list
func (Middlewares) UseAfter ¶ added in v1.3.0
func (ms Middlewares) UseAfter(m Middleware) Middlewares
UseAfter add a middleware at the end of the middleware chain
func (Middlewares) UseBefore ¶ added in v1.3.0
func (ms Middlewares) UseBefore(m Middleware) Middlewares
UseBefore insert a middleware at the begining of the middleware chain
Click to show internal directories.
Click to hide internal directories.