Documentation ¶
Index ¶
- type BadgerDB
- type BadgerTx
- func (t *BadgerTx) Commit() error
- func (t *BadgerTx) CreateChatLongRunningCommand(chatID int64, command string) (string, error)
- func (t *BadgerTx) CreateChatState(chatID int64, chatState telegram.ChatState) (telegram.ChatState, error)
- func (t *BadgerTx) CreateSubnet(subnet *manager.Subnet) (*manager.Subnet, error)
- func (t *BadgerTx) DeleteChatLongRunningCommand(chatID int64) error
- func (t *BadgerTx) DeleteChatState(chatID int64) error
- func (t *BadgerTx) DeleteSubnet(id uuid.UUID) error
- func (t *BadgerTx) DumpData() ([]byte, error)
- func (t *BadgerTx) GetChatLongRunningCommand(chatID int64) (string, error)
- func (t *BadgerTx) GetChatState(chatID int64) (telegram.ChatState, error)
- func (t *BadgerTx) GetOrCreateDeviceName(defaultDeviceName string) (string, error)
- func (t *BadgerTx) GetSubnet(id uuid.UUID) (*manager.Subnet, error)
- func (t *BadgerTx) GetSubnetCIDRs() ([]*net.IPNet, error)
- func (t *BadgerTx) LoadData(data []byte) error
- func (t *BadgerTx) Rollback()
- func (t *BadgerTx) UpdateChatLongRunningCommand(chatID int64, command string) (string, error)
- func (t *BadgerTx) UpdateChatState(chatID int64, chatState telegram.ChatState) (telegram.ChatState, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadgerDB ¶
type BadgerDB struct {
// contains filtered or unexported fields
}
func NewBadgerDB ¶
func (*BadgerDB) AsManagerDB ¶
func (*BadgerDB) AsTelegramDB ¶
type BadgerTx ¶
type BadgerTx struct {
// contains filtered or unexported fields
}
func (*BadgerTx) CreateChatLongRunningCommand ¶
func (*BadgerTx) CreateChatState ¶
func (*BadgerTx) CreateSubnet ¶
func (*BadgerTx) DeleteChatLongRunningCommand ¶
func (*BadgerTx) DeleteChatState ¶
func (*BadgerTx) GetChatLongRunningCommand ¶
func (*BadgerTx) GetChatState ¶
func (*BadgerTx) GetOrCreateDeviceName ¶
func (*BadgerTx) UpdateChatLongRunningCommand ¶
Click to show internal directories.
Click to hide internal directories.