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