Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoRecord = errors.New("models: no matching record found") // ErrInvalidCredentials error. We'll use this later if a user // tries to log in with an incorrect email address or password. ErrInvalidCredentials = errors.New("models: invalid credentials") // ErrDuplicateEmail error. We'll use this later if a user // tries to signup with an email address that's already in use. ErrDuplicateEmail = errors.New("models: duplicate email") )
Functions ¶
This section is empty.
Types ¶
type SnippetModel ¶
func (*SnippetModel) Latest ¶
func (m *SnippetModel) Latest() ([]*Snippet, error)
type SnippetModelInterface ¶
type UserModel ¶
func (*UserModel) Authenticate ¶
Click to show internal directories.
Click to hide internal directories.