Documentation ¶
Index ¶
- type Action
- type InstanceObj
- func (o *InstanceObj) AddNewbieMessages(chatID int64, userID int) error
- func (o *InstanceObj) AddToActionPool(act Action, delay time.Duration) error
- func (o *InstanceObj) DelKicked(chatID int64, userID int) error
- func (o *InstanceObj) GetFromActionPool() ([]Action, error)
- func (o *InstanceObj) GetNewbieMessages(chatID int64, userID int) (int, error)
- func (o *InstanceObj) IsKicked(chatID int64, userID int) (bool, error)
- func (o *InstanceObj) SetKicked(chatID int64, userID int, ttl time.Duration) error
- func (o *InstanceObj) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstanceObj ¶
type InstanceObj struct {
// contains filtered or unexported fields
}
func NewStorage ¶ added in v1.2.1
func NewStorage(c *cnf.Cnf, log *zap.SugaredLogger) (*InstanceObj, error)
func (*InstanceObj) AddNewbieMessages ¶
func (o *InstanceObj) AddNewbieMessages(chatID int64, userID int) error
func (*InstanceObj) AddToActionPool ¶
func (o *InstanceObj) AddToActionPool(act Action, delay time.Duration) error
func (*InstanceObj) GetFromActionPool ¶
func (o *InstanceObj) GetFromActionPool() ([]Action, error)
func (*InstanceObj) GetNewbieMessages ¶
func (o *InstanceObj) GetNewbieMessages(chatID int64, userID int) (int, error)
func (*InstanceObj) IsKicked ¶
func (o *InstanceObj) IsKicked(chatID int64, userID int) (bool, error)
func (*InstanceObj) Stop ¶ added in v1.2.1
func (o *InstanceObj) Stop() error
Click to show internal directories.
Click to hide internal directories.