Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddKeyToQueueRequest ¶
type SnapshotObj ¶
type Throttler ¶
type Throttler interface { // Name 节流阀的名字 Name() string // AddQueue 幂等创建队列 AddQueue(name string, window int64) // AddKeyToQueues 幂等将 key 同时插入指定队列;若队列不存在,则会首先幂等创建队列;若不同时插入,则可能直接被调度了 AddKeyToQueues(key string, reqs []AddKeyToQueueRequest) PopPending(key string) (bool, []PopDetail) PopProcessing(key string) (bool, []PopDetail) snapshot.Snapshot }
Click to show internal directories.
Click to hide internal directories.