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) CopyDatabase(src, target *gorm.DB) 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) CopyDatabase ¶ added in v3.20.0
func (Service) InCooldown ¶
func (*Service) UpdatePermitTimeout ¶
Click to show internal directories.
Click to hide internal directories.