Documentation ¶
Index ¶
- Variables
- func InitSession(db *sql.DB)
- func Logout(key session.Key) error
- func Register(ctx context.Context, username, password string, privileges flag.Flag) error
- func SetPrivileges(q db.Q, id ID, privilege flag.Flag) error
- type ID
- type Message
- type MessageID
- type Profile
- type User
- type UserSession
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWrongCredentials = errors.New("wrong credentials")
Functions ¶
func InitSession ¶
Types ¶
type UserSession ¶
func ActiveSessions ¶
func ActiveSessions(id ID) ([]UserSession, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.