Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
A Repository that holds users.
func (Repository) FindUserByUsername ¶
FindUserByUsername finds a user with the given username. Returns nil if no user is found.
sql:
SELECT * FROM users WHERE lower(username) = lower(:username) LIMIT 1
type User ¶
type User struct { // Username is the user's username. Username string `sql:"username"` // Email is the user's email address, normalized. Email string `sql:"email"` }
A User in the database.
Click to show internal directories.
Click to hide internal directories.