Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NewUser ¶
type NewUser struct { Email string `json:"email"` FirstName string `json:"firstName"` LastName string `json:"lastName"` Password string `json:"password"` }
NewUser is for registering a new user
type User ¶
type User struct { ID string `db:"id" json:"id"` Email string `db:"email" json:"email"` FirstName string `db:"first_name" json:"firstName"` LastName string `db:"last_name" json:"lastName"` AvatarURL string `db:"avatar_url" json:"avatarURL"` PasswordHash string `db:"password" json:"-"` }
User represents a single user
Click to show internal directories.
Click to hide internal directories.