Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Limiter ¶
type Limiter struct {
// contains filtered or unexported fields
}
func (*Limiter) ResetAttempts ¶
type ThrottleRequests ¶
type ThrottleRequests struct {
// contains filtered or unexported fields
}
func Throttle ¶
func Throttle(minutes int, max int) *ThrottleRequests
func (*ThrottleRequests) Handle ¶
func (t *ThrottleRequests) Handle(r contracts.RequestContract, next http.PipeHandler) contracts.ResponseContract
Click to show internal directories.
Click to hide internal directories.