Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID primitive.ObjectID `json:"id" bson:"_id,omitempty"` Username string `json:"username" bson:"username"` Avatar string `json:"avatar" bson:"avatar"` UseTwitterAuth bool `json:"use_twitter_auth" bson:"use_twitter_auth"` Twitter typing.Twitter `json:"twitter" bson:"twitter"` CreatedAt time.Time `json:"created_at" bson:"created_at"` UpdatedAt time.Time `json:"updated_at" bson:"updated_at"` }
func (*User) FindByUsername ¶
FindByUsername finds user by username
func (*User) FindSocial ¶
FindUser finds user by social id
func (*User) RefreshTwitterAccessToken ¶
RefreshTwitterAccessToken refreshes a twitter access token
func (*User) SetDefaultAvatar ¶
check if a user has an Avatar
Click to show internal directories.
Click to hide internal directories.