Documentation
¶
Index ¶
Constants ¶
View Source
const ( StateStart int = iota StateRegister StateWeekSelection StateDaySelection )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Storage ¶
type Storage interface {
GetSchedule(institute string, peerId int) (string, error)
AddUser(institute string, course string, groupNumber string, peerId int) error
CheckSchedule(institute string, course string, groupNumber string) (bool, error)
CheckUser(peerId int) (bool, error)
UserCheckWeek(peerId int) (bool, error)
UserAddWeek(week string, peerId int) error
DeleteUser(peerId int) error
}
type User ¶
type User struct {
// contains filtered or unexported fields
}
func NewUserState ¶ added in v0.0.5
func NewUserState() *User
Click to show internal directories.
Click to hide internal directories.