Documentation
¶
Index ¶
- type Account
- type DB
- func (db DB) Account(ctx context.Context, id int) (*Account, error)
- func (db DB) Accounts(ctx context.Context) ([]*Account, error)
- func (db DB) AddAccount(ctx context.Context, acc *Account) error
- func (db DB) AddUser(ctx context.Context, username, password string) error
- func (db DB) Close() error
- func (db DB) EditAccount(ctx context.Context, id int, acc *Account) error
- func (db DB) EditElo(ctx context.Context, id int, elo string) error
- func (db DB) EditToken(ctx context.Context, id int, token string) error
- func (db DB) RemoveAccount(ctx context.Context, id int) error
- func (db DB) RemoveUser(ctx context.Context, username string) error
- func (db DB) User(ctx context.Context, username string) (*User, error)
- func (db DB) UserByToken(ctx context.Context, token string) (*User, error)
- func (db DB) Usernames(ctx context.Context) ([]string, error)
- type NullTime
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.