Documentation ¶
Index ¶
- func InsertUser(u User)
- func UpdateLastAlert(telegram_id string, timestamp string)
- func UpdateLastCheck(telegram_id string, timestamp string)
- func UpdateLastReminder(telegram_id string, timestamp string)
- func UpdateSettings(telegram_id string, s Settings)
- func UpdateUserAccounts(telegram_id string, accounts []string)
- func UpdateUserEditing(telegram_id string, editing bool, adding bool)
- type Alert
- type Notification
- type Reminder
- type Settings
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertUser ¶
func InsertUser(u User)
func UpdateLastAlert ¶
func UpdateLastCheck ¶
func UpdateLastReminder ¶
func UpdateSettings ¶
func UpdateUserAccounts ¶
func UpdateUserEditing ¶
Types ¶
type Notification ¶
type Settings ¶
type Settings struct { Notification Notification `json:"notification"` Alert Alert `json:"alert"` Reminder Reminder `json:"reminder"` }
type User ¶
type User struct { ID int `json:"id, Number"` TelegramID string `json:"telegram_id"` Accounts pq.StringArray `json:"accounts"` Editing bool `json:"editing"` Adding bool `json:"adding"` LastCheck string `json:"last_check"` Settings Settings `json:"settings"` LastAlert string `json:"last_alert"` LastReminder string `json:"last_reminder"` }
func GetActiveUsers ¶
Click to show internal directories.
Click to hide internal directories.