Documentation ¶
Index ¶
- func Classic() *negroni.Negroni
- func DecodeSchema(dst interface{}, src map[string][]string) error
- func ListenAndServe(handler http.Handler) error
- func ListenAndServeGracefully(handler http.Handler) error
- func New(handlers ...negroni.Handler) *negroni.Negroni
- func NewHttpRouter() *httprouter.Router
- func NewMux() *mux.Router
- func ValidateStruct(s interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Classic ¶
Classic returns a new Negroni instance with the default middleware already in the stack.
Recovery - Panic Recovery Middleware Logger - Request/Response Logging TraceID - Trace ID Middleware RealIP - Get Real Client IP CloseNotify - Notify Client Close Timeout - Stop Process When Timeout
func DecodeSchema ¶
DecodeSchema decodes a map[string][]string to a struct.
func ListenAndServe ¶
ListenAndServe always returns a non-nil error.
func ListenAndServeGracefully ¶
ListenAndServeGracefully always returns a non-nil error.
func NewHttpRouter ¶
func NewHttpRouter() *httprouter.Router
NewHttpRouter returns a new httprouter instance.
func ValidateStruct ¶
func ValidateStruct(s interface{}) error
ValidateStruct use tags for fields. result will be equal to `false` if there are any errors.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.