Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct { Uuid string `json:"uuid"` Filename string `json:"filename"` S3Key string `json:"s3_key"` CreatedAt time.Time `json:"created_at"` Link string `json:"link"` User User `json:"user"` }
func DecodeMessageToImage ¶
type NewSession ¶
func DecodeRequestToNewSession ¶
func DecodeRequestToNewSession(r *http.Request) (*NewSession, error)
type NewUser ¶
type PasswordReset ¶
func DecodeRequestToPasswordReset ¶
func DecodeRequestToPasswordReset(r *http.Request) (*PasswordReset, error)
type SessionRefresh ¶
type SessionRefresh struct {
Token string `json:"token"`
}
SessionRefresh struct for SessionRefresh
func DecodeRequestToSessionRefresh ¶
func DecodeRequestToSessionRefresh(r *http.Request) *SessionRefresh
type SessionToken ¶
type SessionToken struct {
Token string `json:"token"`
}
func DecodeRequestToSessionToken ¶
func DecodeRequestToSessionToken(r *http.Request) *SessionToken
type User ¶
type User struct { Uuid string `json:"uuid"` Name string `json:"name,omitempty"` Username string `json:"username"` ProfilePic string `json:"profile_pic,omitempty"` BioMessage string `json:"bio_message,omitempty"` Email string `json:"email,omitempty"` Password string `json:"password,omitempty"` Role Role `json:"role,omitempty"` IsBanned bool `json:"is_banned,omitempty"` Birthday string `json:"birthday,omitempty"` AddressStreet string `json:"address_street,omitempty"` AddressCity string `json:"address_city,omitempty"` AddressZip string `json:"address_zip,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` }
Click to show internal directories.
Click to hide internal directories.