Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Limier ¶
type Limier struct {
// contains filtered or unexported fields
}
Limier 存储令牌桶与键值对名称的映射关系
type PrefixLimiter ¶
type PrefixLimiter struct { *Limier *PrefixTree }
func NewPrefixLimiter ¶
func NewPrefixLimiter() *PrefixLimiter
func (*PrefixLimiter) AddBuckets ¶
func (p *PrefixLimiter) AddBuckets(rules ...Rule) Iface
type PrefixTree ¶
type PrefixTree struct {
// contains filtered or unexported fields
}
func NewPrefixTree ¶
func NewPrefixTree() *PrefixTree
func (*PrefixTree) Get ¶
func (t *PrefixTree) Get(prefix []string) interface{}
func (*PrefixTree) Put ¶
func (t *PrefixTree) Put(prefix []string, v interface{})
Click to show internal directories.
Click to hide internal directories.