Documentation ¶
Index ¶
- Constants
- Variables
- type Snippet
- type SnippetModel
- type SnippetModelInterface
- type User
- type UserModel
- func (m *UserModel) Authenticate(email, password string) (int, error)
- func (m *UserModel) Exists(id int) (bool, error)
- func (m *UserModel) Get(id int) (*User, error)
- func (m *UserModel) Insert(name, email, password string) error
- func (m *UserModel) PasswordUpdate(id int, currenPpassword, newPassword string) error
- type UserModelInterface
Constants ¶
View Source
const (
UniqueConstraintViolation = "23505"
)
Variables ¶
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.