Documentation
¶
Index ¶
- Variables
- type Link
- type LinkModel
- func (m *LinkModel) BackHalfExists(backHalf string) (bool, error)
- func (m *LinkModel) Delete(id string) error
- func (m *LinkModel) GetByBackHalf(backHalf string) (*Link, error)
- func (m *LinkModel) GetByID(id string) (*Link, error)
- func (m *LinkModel) GetByUserID(userID string) ([]*Link, error)
- func (m *LinkModel) GetSummaryByUserID(userID string) (*Summary, error)
- func (m *LinkModel) Insert(url, backHalf string, userID string) (*Link, error)
- func (m *LinkModel) Update(id, url, backHalf string) error
- func (m *LinkModel) UpdateEngagements(id string, engagements int) error
- type Summary
- type User
- type UserModel
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDuplicateBackHalf = errors.New("models: duplicate back-half")
View Source
var ErrDuplicateEmail = errors.New("models: duplicate email")
View Source
var ErrInvalidCredentials = errors.New("models: invalid credentials")
View Source
var ErrNoRecord = errors.New("models: no matching record found")
Functions ¶
This section is empty.
Types ¶
type LinkModel ¶
func (*LinkModel) BackHalfExists ¶
func (*LinkModel) GetSummaryByUserID ¶
type UserModel ¶
func (*UserModel) Authenticate ¶
Click to show internal directories.
Click to hide internal directories.