Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
Middleware represents middleware handlers.
func (*Middleware) Authenticate ¶
func (m *Middleware) Authenticate(next http.Handler) http.Handler
Authenticate verifies authentication provided in the request's Authorization header if the request uses HTTP Basic Authentication.
func (*Middleware) Logging ¶
func (m *Middleware) Logging(next http.Handler) http.Handler
Logging logs all requests with its information and the time it took to process
func (*Middleware) RestrictDomain ¶
func (m *Middleware) RestrictDomain(next http.Handler) http.Handler
RestrictDomain checks whehter request's remote address was matched a defined host pattern or not.
Click to show internal directories.
Click to hide internal directories.