Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountRepo ¶
type AccountRepo interface { AccountByUserName(ctx context.Context, username string) (*Account, error) UpdateAccount(ctx context.Context, a *Account) error }
func NewAccountMySQLRepo ¶
func NewAccountMySQLRepo(db *sql.DB, stmtBuilder StatementsBuilder) (AccountRepo, error)
type AuthStmtType ¶
type AuthStmtType uint8
const ( AuthStmtTypeGetAccountByUsername AuthStmtType = iota AuthStmtTypeUpdateAccountByID AuthStmtTypeGetRealmList AuthStmtTypeGetCharactersCountOnRealmsByAccount )
type CharsCountInRealm ¶
type RealmRepo ¶
type RealmRepo interface { LoadRealms(ctx context.Context) ([]Realm, error) CountCharsPerRealmByAccountID(ctx context.Context, accountID uint32) ([]CharsCountInRealm, error) }
func NewRealmMySQLRepo ¶
func NewRealmMySQLRepo(db *sql.DB, stmtBuilder StatementsBuilder) (RealmRepo, error)
type StatementsBuilder ¶
type StatementsBuilder interface {
StmtForType(AuthStmtType) string
}
func StatementsBuilderForSchema ¶
func StatementsBuilderForSchema(schemaType repo.SupportedSchemaType) StatementsBuilder
Click to show internal directories.
Click to hide internal directories.