Documentation ¶
Index ¶
Constants ¶
View Source
const AuthUserIDKey = authUserIDKey("user_id")
AuthUserIDKey is the key for the user_id value in the context.
View Source
const (
MinPasswordLength = 6
)
Variables ¶
View Source
var ( ErrEmailInvalid = errors.New("user.entity.email_invalid") ErrPasswordTooShort = errors.New("user.entity.password_too_short") )
User entity errors.
View Source
var (
ErrAuthTokenExpired = errors.New("auth.entity.token.expired")
)
Auth entity errors.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
Auth represents an authentication in the system.
func (*Auth) VerifyTokenExpires ¶
VerifyTokenExpires checks if the token has expired.
type NullTime ¶
NullTime that may be null. NullTime embed sql.NullTime and implement json Unmarshaler and Marshaler
func (NullTime) MarshalJSON ¶
func (*NullTime) UnmarshalJSON ¶
type Task ¶
type Task struct { ID TaskID UserID UserID Content string Description string IsCompleted bool DueDate NullTime CreatedAt time.Time UpdatedAt time.Time }
Task represents a task in the system.
Click to show internal directories.
Click to hide internal directories.