Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mutex ¶
type RWMutex ¶
type RWMutex struct { M map[string]limiter.Limiter R float64 B int // contains filtered or unexported fields }
func NewRWMutex ¶
func NewRWMutex(constructor NewLimiterFn, reqPerSec float64, burst int) *RWMutex
type Ratelimiter ¶
func NewDefaultRatelimiter ¶
func NewDefaultRatelimiter(reqPerSec float64, burst int) Ratelimiter
type SyncMapLoadOrStore ¶
func NewSyncMapLoadOrStore ¶
func NewSyncMapLoadOrStore(constructor NewLimiterFn, reqPerSec float64, burst int) *SyncMapLoadOrStore
type SyncMapLoadThenLoadOrStore ¶
type SyncMapLoadThenLoadOrStore struct { R float64 B int // contains filtered or unexported fields }
func NewSyncMapLoadThenLoadOrStore ¶
func NewSyncMapLoadThenLoadOrStore(constructor NewLimiterFn, reqPerSec float64, burst int) *SyncMapLoadThenLoadOrStore
type SyncMapLoadThenStore ¶
func NewSyncMapLoadThenStore ¶
func NewSyncMapLoadThenStore(constructor NewLimiterFn, reqPerSec float64, burst int) *SyncMapLoadThenStore
Click to show internal directories.
Click to hide internal directories.