Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultMemoryThrottler = NewMemoryThrottler()
DefaultMemoryThrottler a default MemoryThrottler
View Source
var (
ErrThrottled = errors.New("throttled")
)
Functions ¶
This section is empty.
Types ¶
type MemoryThrottler ¶
type MemoryThrottler struct {
// contains filtered or unexported fields
}
MemoryThrottler in memory throttler
func NewMemoryThrottler ¶
func NewMemoryThrottler() *MemoryThrottler
NewMemoryThrottler creates a new MemoryThrottler
type RedisThrottler ¶
type RedisThrottler struct {
// contains filtered or unexported fields
}
RedisThrottler redis throttler
func NewRedisThrottler ¶
func NewRedisThrottler(redisClient redis.UniversalClient) *RedisThrottler
NewRedisThrottler creates a new RedisThrottler
Click to show internal directories.
Click to hide internal directories.