Documentation ¶ Index ¶ type Count func (m *Count) MoveOn() bool func (m *Count) Use() type Limiter func ParseLimiters(opts map[string]string) ([]Limiter, error) type Limiters func (m Limiters) MoveOn() bool func (m Limiters) Use() type TTL func (m *TTL) MoveOn() bool func (m *TTL) Use() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Count ¶ type Count struct { Cur int Max int } func (*Count) MoveOn ¶ func (m *Count) MoveOn() bool func (*Count) Use ¶ func (m *Count) Use() type Limiter ¶ type Limiter interface { Use() MoveOn() bool } func ParseLimiters ¶ func ParseLimiters(opts map[string]string) ([]Limiter, error) type Limiters ¶ type Limiters []Limiter func (Limiters) MoveOn ¶ func (m Limiters) MoveOn() bool func (Limiters) Use ¶ func (m Limiters) Use() type TTL ¶ type TTL struct { TTL time.Duration Until time.Time } func (*TTL) MoveOn ¶ func (m *TTL) MoveOn() bool func (*TTL) Use ¶ func (m *TTL) Use() Source Files ¶ View all Source files count.go limiter.go ttl.go Click to show internal directories. Click to hide internal directories.