Documentation ¶
Index ¶
- type Middleware
- type MiddlewareServer
- func (m *MiddlewareServer) Append(middleware Middleware)
- func (m *MiddlewareServer) List() []string
- func (m *MiddlewareServer) Prepend(middleware Middleware)
- func (m *MiddlewareServer) Rebuild()
- func (m *MiddlewareServer) ServeHTTP(rw http.ResponseWriter, r *http.Request)
- func (m *MiddlewareServer) Set(middlewares ...Middleware)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware func(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
type MiddlewareServer ¶
type MiddlewareServer struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(base http.HandlerFunc) *MiddlewareServer
func (*MiddlewareServer) Append ¶
func (m *MiddlewareServer) Append(middleware Middleware)
func (*MiddlewareServer) List ¶
func (m *MiddlewareServer) List() []string
func (*MiddlewareServer) Prepend ¶
func (m *MiddlewareServer) Prepend(middleware Middleware)
func (*MiddlewareServer) Rebuild ¶
func (m *MiddlewareServer) Rebuild()
func (*MiddlewareServer) ServeHTTP ¶
func (m *MiddlewareServer) ServeHTTP(rw http.ResponseWriter, r *http.Request)
func (*MiddlewareServer) Set ¶
func (m *MiddlewareServer) Set(middlewares ...Middleware)
Click to show internal directories.
Click to hide internal directories.