Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricsMiddleware ¶
type MetricsMiddleware struct {
// contains filtered or unexported fields
}
func MewMetricMiddleware ¶
func MewMetricMiddleware(next allower) *MetricsMiddleware
func (*MetricsMiddleware) Allow ¶
func (m *MetricsMiddleware) Allow(user string) bool
type TokenRateLimiter ¶
type TokenRateLimiter struct {
// contains filtered or unexported fields
}
func (*TokenRateLimiter) Allow ¶
func (t *TokenRateLimiter) Allow(user string) bool
Allow enforces a rate limit of N tokens per session.
Click to show internal directories.
Click to hide internal directories.