Documentation ¶
Index ¶
- func CheckIfInQueue(userHandle string) (bool, error)
- func CheckQueueContents() (string, error)
- func CheckQueueLength(userHandle string) (bool, int, error)
- func EstablishDBConnection(toReset bool)
- func JoinQueue(user tgbotapi.Update) error
- func KickPerson(position int64) (chatID int64, err error)
- func LeaveQueue(userHandle string) error
- func NotifyQueue(position int64) (chatID int64, err error)
- type AdminUser
- type QueueUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfInQueue ¶
func CheckQueueContents ¶
func EstablishDBConnection ¶
func EstablishDBConnection(toReset bool)
Must be called before any interaction with the DB to initialize the db connection.
func KickPerson ¶
func LeaveQueue ¶
func NotifyQueue ¶
Types ¶
type QueueUser ¶
type QueueUser struct { QueueID uint64 `db:"queue_id" note:"Postgres-generated identifier"` UserHandle string `db:"user_handle" note:"Refers to the Telegram handle"` ChatID int64 `db:"chat_id" note:"Refers to the ID used to identify message chats"` Joined_at time.Time `db:"joined_at" note:"Refers to the time the user joined a queue"` }
Click to show internal directories.
Click to hide internal directories.