Documentation ¶
Index ¶
- type Service
- func (s Service) AddCooldown(tt plugins.TimerType, limiter, ruleID string, expiry time.Time) error
- func (s Service) AddPermit(channel, username string) error
- func (s Service) HasPermit(channel, username string) (bool, error)
- func (s Service) HasTimer(id string) (bool, error)
- func (s Service) InCooldown(tt plugins.TimerType, limiter, ruleID string) (bool, error)
- func (s Service) SetTimer(id string, expiry time.Time) error
- func (s *Service) UpdatePermitTimeout(d time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (Service) AddCooldown ¶
func (Service) InCooldown ¶
func (*Service) UpdatePermitTimeout ¶
Click to show internal directories.
Click to hide internal directories.