Documentation ¶
Index ¶
- func CompareUserBasic(u1 wings.UserBasic, u2 wings.UserBasic) (bool, []string)
- func CompareUserObj(u1 UserObj, u2 UserObj) (bool, []string)
- func DeleteUserObj(toDelete wings.UserBasic, self int) bool
- func GetUsernameWithID(id int) string
- type RegistrationResponse
- type RegistrationResponses
- type UserObj
- type UserObjs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareUserBasic ¶
func GetUsernameWithID ¶
Types ¶
type RegistrationResponse ¶
type RegistrationResponse struct { Error wings.RegistrationError `json:"error"` User UserObj `json:"user"` }
RegistrationResponse - Response for registration attempt
func NewUser ¶
func NewUser(newUser wings.NewUser) RegistrationResponse
type RegistrationResponses ¶
type RegistrationResponses []RegistrationResponse
RegistrationResponses - An array of RegistrationResponse
type UserObj ¶
type UserObj struct { ID int `json:"id"` Details wings.UserBasic `json:"details"` Trips []trip.TripObj `json:"trips"` TimeCreated time.Time `json:"time_created"` }
UserObj - All information of a single user.
func DummyUserObj ¶
func DummyUserObj() UserObj
func GetUserObj ¶
func GetUserObjWithEmail
deprecated
func GetUserObjWithUsername ¶
Click to show internal directories.
Click to hide internal directories.