Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustUserMiddleware ¶
func UserMiddleware ¶
Types ¶
type FollowUser ¶
type Profile ¶
type Profile struct { ID uint64 `json:"-"` Username string `json:"username"` Bio string `json:"bio"` Image string `json:"image"` Following bool `pg:"-" json:"following"` // contains filtered or unexported fields }
func NewProfile ¶
type User ¶
type User struct { ID uint64 `json:"-"` Username string `json:"username"` Email string `json:"email"` Bio string `json:"bio"` Image string `json:"image"` Password string `pg:"-" json:"password,omitempty"` PasswordHash string `json:"-"` Following bool `pg:"-" json:"following"` Token string `pg:"-" json:"token,omitempty"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.