Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Password ¶
type Password string
Password represents a password
func (Password) GenerateHash ¶
GenerateHash generates a hash for the password
type User ¶
type User struct { ID string `json:"id"` Name string `json:"name"` ScreenName string `json:"screen_name"` PasswordHash string `json:"password_hash"` Email string `json:"email"` Bio string `json:"bio"` Location string `json:"location"` Website string `json:"website"` ProfileImageURL string `json:"profile_image_url"` ProfileBannerURL string `json:"profile_banner_url"` BirthDate time.Time `json:"birth_date"` FollowersCount int `json:"followers_count"` FollowingsCount int `json:"followings_count"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
User represents a generic user
func (User) PasswordIsValid ¶
PasswordIsValid determines wether the given password matches with the user's password hash
Click to show internal directories.
Click to hide internal directories.