Documentation ¶
Index ¶
Constants ¶
View Source
const ( None = iota View = iota Edit = iota Owner = iota )
View Source
const ( UNKNOWN = iota SanFranciscoCAUS = iota SanJoseCAUS = iota NewYorkNYUS = iota AnchorageAKUS = iota ParisFR = iota KualaLumpurMY = iota GeorgeTownPGMY = iota SeattleWAUS = iota WashingtonDCUS = iota BostonMAUS = iota PhoneixAZUS = iota PageAZUS = iota LosAngelesCAUS = iota LasVegasNVUS = iota SantaCruzCAUS = iota HonoluluHIUS = iota MauiHIUS = iota )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessLevel ¶
type AccessLevel int
type Day ¶
type Day struct { ID int `json:"id"` TripID int `json:"trip_id"` DayOf int `json:"day_of"` Places []Place `json:"places"` TravelTime []TravelTime `json:"travel_time"` }
Day - A day of a trip.
type NewUser ¶
type NewUser struct { ID int `json:"id"` Username string `json:"username"` Name string `json:"name"` Email string `json:"email"` Bio string `json:"bio"` Password string `json:"password"` }
NewUser - Basic information for user registeration.
type ParsedCity ¶
type ParsedCity struct { ID int `json:"id"` Display string `json:"display"` Iso2 string `json:"iso2"` }
ParsedCity - City object queried from DB
type Place ¶
type Place struct { ID int `json:"id"` Label string `json:"label"` URL string `json:"url"` Description string `json:"description"` }
Place - One of many location for a Day (in a Trip).
type RegistrationError ¶
type RegistrationError int
type TravelTime ¶
type TravelTime struct { ID int `json:"id"` FromPlaceID int `json:"from_place_id"` ToPlaceID int `json:"to_place_id"` ToPlaceIndex int `json:"to_place_index"` TimeInMinutes int `json:"time_in_minutes"` }
TravelTime - Time take to travel from one place to another.
type TripBasic ¶
type TripBasic struct { ID int `json:"id"` Name string `json:"name"` Cities []ParsedCity `json:"cities"` Days []Day `json:"days"` Description string `json:"description"` Private bool `json:"private"` }
TripBasic - Only core information of a trip.
type UserAccessLevel ¶
type UserAccessLevel struct { ID int `json:"id"` ObjID int `json:"obj_id"` UserID int `json:"user_id"` Access AccessLevel `json:"access"` }
UserAccessLevel - UserAccessLevel - User access level of a specific object.
type UserAccessLevels ¶
type UserAccessLevels []UserAccessLevel
UserAccessLevels - An array of UserAccessLevel
Click to show internal directories.
Click to hide internal directories.