Documentation
¶
Index ¶
- func GetBotChat(ctx context.Context, tx dal.ReadSession, platformID, botID, chatID string, ...) (chat record.DataWithID[string, botsfwmodels.BotChatData], err error)
- func GetBotUser(ctx context.Context, tx dal.ReadSession, platformID, botID, userID string, ...) (botUser record.DataWithID[string, botsfwmodels.BotUserData], err error)
- func NewBotChatKey(platformID, botID, chatID string) *dal.Key
- func NewBotKey(platformID, botID string) *dal.Key
- func NewBotUserKey(platformID, botID, botUserID string) *dal.Key
- func NewPlatformKey(platform string) *dal.Key
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBotChat ¶
func GetBotChat( ctx context.Context, tx dal.ReadSession, platformID, botID, chatID string, newData func() botsfwmodels.BotChatData, ) (chat record.DataWithID[string, botsfwmodels.BotChatData], err error)
func GetBotUser ¶
func GetBotUser( ctx context.Context, tx dal.ReadSession, platformID, botID, userID string, newData func() botsfwmodels.BotUserData, ) (botUser record.DataWithID[string, botsfwmodels.BotUserData], err error)
func NewBotChatKey ¶
func NewBotUserKey ¶
func NewPlatformKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.