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)
}
func NewAccountMySQLRepo ¶
func NewAccountMySQLRepo(db *sql.DB, stmtBuilder StatementsBuilder) (AccountRepo, error)
type AuthStmtType ¶
type AuthStmtType uint8
const (
AuthStmtTypeGetAccountByUsername AuthStmtType = iota
)
type StatementsBuilder ¶
type StatementsBuilder interface {
StmtForType(AuthStmtType) string
}
func StatementsBuilderForSchema ¶
func StatementsBuilderForSchema(schemaType repo.SupportedSchemaType) StatementsBuilder
Source Files ¶
Click to show internal directories.
Click to hide internal directories.