Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Middleware ¶
type Middleware struct {
RequireJSON bool
}
func New ¶
func New(require bool) *Middleware
func (*Middleware) Middleware ¶ added in v1.0.2
func (m *Middleware) Middleware() func(http.Handler) http.Handler
Middleware implements ports.Middleware by returning the Handler adapter.
Click to show internal directories.
Click to hide internal directories.