Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrHandlers ¶
type ErrHandlers map[error]HandlerFunc
type HandlerObject ¶
type HandlerObject struct { Fun HandlerFunc Middlewares []Middleware }
type MethodsMap ¶
type MethodsMap map[methods.Method]*HandlerObject
type Middleware ¶
type Middleware func(next HandlerFunc, request *http.Request) http.Response
Middleware works like a chain of nested calls, next may be even directly handler. But if we are not a closing middleware, we will call next middleware that is simply a partial middleware with already provided next
type RoutesMap ¶
type RoutesMap map[string]MethodsMap
Click to show internal directories.
Click to hide internal directories.