Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProfilePicture ¶
type ProfilePicture struct { ID int64 `json:"id"` SuperheroID string `json:"superhero_id"` ProfilePictureURL string `json:"url"` Position int `json:"position"` }
ProfilePicture holds data related to profile picture of a Superhero.
type Request ¶
type Request struct { ID string `json:"id"` LookingForGender int `json:"looking_for_gender"` Gender int `json:"gender"` LookingForAgeMin int `json:"looking_for_age_min"` LookingForAgeMax int `json:"looking_for_age_max"` MaxDistance int `json:"max_distance"` DistanceUnit string `json:"distance_unit"` Lat float64 `json:"lat"` Lon float64 `json:"lon"` RetrievedSuperheroIDs []string `json:"retrieved_superhero_ids"` }
Request holds the parameters that are received with request at suggestions endpoint.
type Superhero ¶
type Superhero struct { ID string `json:"superhero_id"` Email string `json:"email"` Name string `json:"name"` SuperheroName string `json:"superhero_name"` MainProfilePicURL string `json:"main_profile_pic_url"` ProfilePictures []ProfilePicture `json:"profile_pics"` Gender int `json:"gender"` LookingForGender int `json:"looking_for_gender"` Age int `json:"age"` LookingForAgeMin int `json:"looking_for_age_min"` LookingForAgeMax int `json:"looking_for_age_max"` LookingForDistanceMax int `json:"looking_for_distance_max"` DistanceUnit string `json:"distance_unit"` Location elastic.GeoPoint `json:"location"` Birthday string `json:"birthday"` Country string `json:"country"` City string `json:"city"` SuperPower string `json:"superpower"` AccountType string `json:"account_type"` CreatedAt string `json:"created_at"` }
Superhero holds the user profile data returned as suggestion.
Click to show internal directories.
Click to hide internal directories.