Documentation
¶
Index ¶
Constants ¶
View Source
const (
LockCountPrefix = "lock-count"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LockCounter ¶
type LockCounter struct {
TryMax int // 最大回数
Expiration time.Duration // 判定対象期間
Trigger Trigger
// contains filtered or unexported fields
}
func TimedCounter ¶
func (*LockCounter) Clear ¶
func (c *LockCounter) Clear(ctx context.Context)
func (*LockCounter) Key ¶
func (c *LockCounter) Key() string
type LockTrigger ¶
func (*LockTrigger) Reset ¶
func (t *LockTrigger) Reset(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.