Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShortURL ¶
type ShortURL struct { Id uuid.UUID `json:"id" db:"id"` OriginalURL string `json:"original_url,omitempty" db:"original_url" validate:"http_url"` ShortCode string `json:"short_code,omitempty" db:"short_code" validate:"lte=16"` CreatedAt time.Time `json:"created_at,omitempty" db:"created_at"` UpdatedAt time.Time `json:"updated_at,omitempty" db:"updated_at"` }
type User ¶
type User struct { UserId uuid.UUID `json:"user_id,omitempty" db:"user_id" redis:"user_id"` Username string `json:"username,omitempty" db:"username" redis:"username"` Email string `json:"email,omitempty" db:"email" redis:"email"` Password string `json:"password,omitempty" db:"hashed_password"` CreatedAt time.Time `json:"created_at,omitempty" db:"created_at" redis:"created_at"` UpdatedAt time.Time `json:"updated_at,omitempty" db:"updated_at" redis:"updated_at"` }
func (*User) ComparePassword ¶
func (*User) HashPassword ¶
func (*User) SanitizePassword ¶
func (u *User) SanitizePassword()
func (*User) UnmarshalBinary ¶
UnmarshalBinary implements the encoding.BinaryUnmarshaler interface for decoding a User object from redis.
type UserWithToken ¶
Click to show internal directories.
Click to hide internal directories.