Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRecordNotFound = errors.New("record not found") ErrInvalidCredentials = errors.New("invalid credentials") )
View Source
var (
ErrDuplicateEmail = errors.New("duplicate email")
)
Functions ¶
func ValidateFilters ¶
func ValidateLink ¶
func ValidateUser ¶
Types ¶
type Link ¶
type Link struct { ID int64 Title string Type string URL sql.NullString Content sql.NullString Likes int64 Tags []string CreatedAt time.Time HumanCreatedAt string }
func (*Link) FormatCreatedAt ¶
func (l *Link) FormatCreatedAt()
type UserModel ¶
func (*UserModel) Authenticate ¶
Click to show internal directories.
Click to hide internal directories.