Documentation
¶
Index ¶
Constants ¶
View Source
const ( UserStateNone = iota UserStateSearchGroup UserStateSearchTeacher )
View Source
const EventTypeMessage int64 = 1
View Source
const EventTypeMessageEdited int64 = 2
View Source
const EventTypeReplyCallback int64 = 3
View Source
const MetricFlagFirstMessage = 1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type User ¶
type User struct {
Id int64
Messages int64
State int64
Firstname string
Lastname *string
Username *string
Faculty *string
EducationForm *string
Course *string
StudyGroup *string
IsAdmin bool
KeyboardVersion int64
Settings *UserSettings
BannedUntil time.Time
// contains filtered or unexported fields
}
type UserSettings ¶
type UserSettings struct {
UserId int64
ShowGroups int64
ShowTeacher bool
HiddenSubjects []string
// contains filtered or unexported fields
}
func GetOrCreateUserSettings ¶
func GetOrCreateUserSettings(db *sql.DB, id int64) (*UserSettings, error)
func (*UserSettings) Save ¶
func (settings *UserSettings) Save() error
Click to show internal directories.
Click to hide internal directories.