Documentation ¶
Index ¶
- func GetCounterValue(db database.Connector, counterName string) (int64, error)
- func Register(args plugins.RegistrationArguments) error
- func UpdateCounter(db database.Connector, counterName string, value int64, absolute bool) error
- type ActorCounter
- func (a ActorCounter) Execute(c *irc.Client, m *irc.Message, r *plugins.Rule, ...) (preventCooldown bool, err error)
- func (a ActorCounter) IsAsync() bool
- func (a ActorCounter) Name() string
- func (a ActorCounter) Validate(tplValidator plugins.TemplateValidatorFunc, attrs *plugins.FieldCollection) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCounterValue ¶
func Register ¶
func Register(args plugins.RegistrationArguments) error
Types ¶
type ActorCounter ¶
type ActorCounter struct{}
func (ActorCounter) Execute ¶
func (a ActorCounter) Execute(c *irc.Client, m *irc.Message, r *plugins.Rule, eventData *plugins.FieldCollection, attrs *plugins.FieldCollection) (preventCooldown bool, err error)
func (ActorCounter) IsAsync ¶
func (a ActorCounter) IsAsync() bool
func (ActorCounter) Name ¶
func (a ActorCounter) Name() string
func (ActorCounter) Validate ¶
func (a ActorCounter) Validate(tplValidator plugins.TemplateValidatorFunc, attrs *plugins.FieldCollection) (err error)
Click to show internal directories.
Click to hide internal directories.