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