Documentation ¶
Index ¶
- type Action
- type ActionType
- type InstanceObj
- func (o *InstanceObj) AddNewbieMessages(ctx context.Context, chatID int64, userID int) error
- func (o *InstanceObj) AddToActionPool(ctx context.Context, act Action, delay time.Duration) error
- func (o *InstanceObj) DelKicked(ctx context.Context, chatID int64, userID int64) error
- func (o *InstanceObj) GetFromActionPool(ctx context.Context) ([]Action, error)
- func (o *InstanceObj) GetNewbieMessages(ctx context.Context, chatID int64, userID int) (int, error)
- func (o *InstanceObj) GetTokenData(ctx context.Context, token string) (TokenData, error)
- func (o *InstanceObj) IsKicked(ctx context.Context, chatID int64, userID int) (bool, error)
- func (o *InstanceObj) NewToken(ctx context.Context, chatID int64) (string, error)
- func (o *InstanceObj) SetKicked(ctx context.Context, chatID int64, userID int, ttl time.Duration) error
- func (o *InstanceObj) Stop() error
- type Options
- type TokenData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionType ¶ added in v1.4.0
type ActionType string
const ( ActionTypeDelete ActionType = "del" ActionTypeKick ActionType = "kick" )
type InstanceObj ¶
type InstanceObj struct {
// contains filtered or unexported fields
}
func NewStorage ¶ added in v1.2.1
func NewStorage(opts Options) (*InstanceObj, error)
func (*InstanceObj) AddNewbieMessages ¶
func (*InstanceObj) AddToActionPool ¶
func (*InstanceObj) GetFromActionPool ¶
func (o *InstanceObj) GetFromActionPool(ctx context.Context) ([]Action, error)
func (*InstanceObj) GetNewbieMessages ¶
func (*InstanceObj) GetTokenData ¶ added in v1.4.0
func (*InstanceObj) Stop ¶ added in v1.2.1
func (o *InstanceObj) Stop() error
Click to show internal directories.
Click to hide internal directories.