Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorization ¶
type Authorization struct {
}
func NewAuthorization ¶
func NewAuthorization() *Authorization
This middleware check that an API key was given
func (*Authorization) ServeHTTP ¶
func (a *Authorization) ServeHTTP(w http.ResponseWriter, req *http.Request, next http.HandlerFunc)
The middleware handler
type Limiter ¶
type Limiter struct {
// contains filtered or unexported fields
}
func NewLimiter ¶
This middleware check a client is not over the rate limit
func (*Limiter) ServeHTTP ¶
func (l *Limiter) ServeHTTP(w http.ResponseWriter, req *http.Request, next http.HandlerFunc)
The middleware handler
Click to show internal directories.
Click to hide internal directories.