Documentation
¶
Index ¶
- Variables
- func DeleteIndexChat(ctx context.Context, chatID int64) error
- func DeleteSubBot(ctx context.Context, botID int64) error
- func InitDatabase(ctx context.Context) error
- func UpsertIndexChat(ctx context.Context, IndexChat *IndexChat) error
- func UpsertSubBot(ctx context.Context, subBot *SubBot) error
- func UpsertUserInfo(ctx context.Context, userInfo *UserInfo) error
- func Watching(chatID int64) bool
- type ChatType
- type IndexChat
- type SubBot
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var WatchedChatsID = make(map[int64]struct{})
Functions ¶
func InitDatabase ¶
Types ¶
type IndexChat ¶
type IndexChat struct {
ChatID int64 `gorm:"primaryKey"`
Title string
Username string
Type int
Watching bool `gorm:"default:true"`
NoDelete bool
Public bool `gorm:"default:false"`
}
func GetAllPublicIndexChats ¶
Click to show internal directories.
Click to hide internal directories.