Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultResponseEncoder ¶
func DefaultResponseEncoder(w http.ResponseWriter, r *http.Request, v interface{}) error
Types ¶
type EncodeResponseFunc ¶
type EncodeResponseFunc func(http.ResponseWriter, *http.Request, interface{}) error
EncodeResponseFunc is encode response func.
type HandlerFunc ¶
type Middleware ¶
Middleware is HTTP middleware.
func Chain ¶
func Chain(m ...Middleware) Middleware
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) Handle ¶
func (s *Server) Handle(method, path string, handler HandlerFunc, label string)
func (*Server) HandlerFunc ¶
func (s *Server) HandlerFunc(path string, handler HandlerFunc) *mux.Route
Click to show internal directories.
Click to hide internal directories.