Documentation ¶
Index ¶
Constants ¶
View Source
const (
CookieName = "R_SESS"
)
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
Types ¶
type AuthLimiter ¶
type AuthLimiter struct {
// contains filtered or unexported fields
}
AuthLimiter can only work for local auth provider
func (*AuthLimiter) LimitByUser ¶
func (al *AuthLimiter) LimitByUser(key string, request *types.APIContext) error
func (*AuthLimiter) MarkFailure ¶
func (al *AuthLimiter) MarkFailure(key string, request *types.APIContext) int
type IPRateLimiter ¶
type IPRateLimiter struct {
// contains filtered or unexported fields
}
IPRateLimiter .
func (*IPRateLimiter) LimitByRequest ¶
func (i *IPRateLimiter) LimitByRequest(request *types.APIContext) error
Click to show internal directories.
Click to hide internal directories.