Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrorEmailConflict = Error("email conflict") ErrorTokenExpired = Error("token expired") ErrorTokenNotFound = Error("token not found") ErrorUserInactive = Error("user inactive") ErrorUserNotFound = Error("user not found") )
View Source
const RFC3339Milli = "2006-01-02T15:04:05.000Z07:00"
RFC3339Milli is like time.RFC3339Nano, but with millisecond precision, and fractional seconds do not have trailing zeros removed. Good for sorting chronologically.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailAddress ¶
type EmailAddress string
func (EmailAddress) IsValid ¶
func (e EmailAddress) IsValid() bool
func (EmailAddress) Local ¶
func (e EmailAddress) Local() string
func (EmailAddress) String ¶
func (e EmailAddress) String() string
func (EmailAddress) ToLower ¶
func (e EmailAddress) ToLower() EmailAddress
type Time ¶
Time is a wrapper around time.Time that provides custom marshaling and scanning. It's useful especially for storing time in SQLite.
func ParseTime ¶
ParseTime according to RFC3339Milli and return in UTC.
func (Time) MarshalText ¶
MarshalText satisfies encoding.TextMarshaler.
func (*Time) UnmarshalText ¶
UnmarshalText satisfies encoding.TextUnmarshaler.
Click to show internal directories.
Click to hide internal directories.