Documentation ¶
Index ¶
- func AddAdmin(toAdd string, requestor string) error
- func AddDummy()
- func CheckIfAdmin(handle string) (bool, error)
- func CheckIfInQueue(userHandle string) (bool, error)
- func CheckQueueContents() ([]types.QueueUser, error)
- func CheckQueueLength(userHandle string) (bool, int, error)
- func EstablishDBConnection(toReset bool)
- func GetPositionInQueue(position int) (userHandle string, chatID int64, err error)
- func JoinQueue(username string, chatID int64) error
- func KickPerson(toKick string) (chatID int64, err error)
- func LeaveQueue(userHandle string) error
- func NotifyQueue(position int64) (chatID int64, err error)
- func RemoveAdmin(toRemove string, requestor string) (string, error)
- func RemoveFirstInQueue() (userHandle int64, err error)
- func SeeAdminList(retriever string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfAdmin ¶
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 GetPositionInQueue ¶
position should be 1-indexed.
func KickPerson ¶
Kick a person with a Telegram handle. Returns a chatID for further communications.
func LeaveQueue ¶
func NotifyQueue ¶
func RemoveFirstInQueue ¶
func SeeAdminList ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.