Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DistLimiter ¶
type DistLimiter struct {
// contains filtered or unexported fields
}
func NewDistLimiter ¶
func NewDistLimiter(options *Options) *DistLimiter
type Options ¶
type Options struct { Id string TotalQPS uint32 HeartbeatSeconds uint32 Limiter RateLimiter Remote RemoteStore RedisAddr string RedisKey string }
type Peer ¶
type Peer struct {
// contains filtered or unexported fields
}
func NewPeer ¶
func NewPeer(totalQPS uint32, remote RemoteStore, options *peerOptions) *Peer
type RateLimiter ¶
Click to show internal directories.
Click to hide internal directories.