Documentation ¶
Index ¶
- Variables
- func GetImg(imgURL string, proxyURL *url.URL) (string, []byte, error)
- func ParseProxy(urlToParse, userName, password string) (*url.URL, error)
- func RemoveSpace(value string) string
- func TestSaveOnDisk()
- type Amenity
- type Answer
- type Client
- type Coordinates
- type Data
- type Img
- type License
- type Location
- type ManualLocation
- type Qa
- type Rate
- type Review
- type SearchItem
- type SearchOutput
- type SortValue
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SortHighestRate = SortValue("rating") SortMostViewed = SortValue("review_count") SortRecomended = SortValue("recommended") )
Functions ¶
func RemoveSpace ¶
func TestSaveOnDisk ¶
func TestSaveOnDisk()
Types ¶
type Client ¶
type Client struct { Language string //for example es_CL,es_MX SortValue SortValue //for example SortHighestRate,SortMostViewed,SortRecomended Location string ProxyURL *url.URL }
func DefaulClient ¶
func DefaulClient() Client
type Coordinates ¶
type Data ¶
type Data struct { Language string TotalQuestionNumber int Name string Claimed bool Telephone string YelpURL string BizURL string MainImage string Rate Rate Location Location Coordinates Coordinates Images []Img Amenities []Amenity Qas []Qa Reviews []Review }
func ParseBodyDetails ¶
func TestImages ¶
func TestNoImages ¶
type ManualLocation ¶
type SearchItem ¶
type SearchItem struct { ID string IsAd bool Name string SubTitle string ShortDescription string YelpURL string BizURL string Rating float32 ReviewCount int //yelp, rounds ResponseTimeMin to the biggest integer with a zero to the right(on the duration category), so if minutes is 12 on the screen is 20 minutes, if minutes is 26 on the screen is 30 minutes, if minutes is 68 on the screen is 2 hours,if minutes is 125 on the screen is 3 hours ResponseTimeMin int ManualLocation ManualLocation AddressLines []string Neighborhoods []string Categories []string City string Licenses []License Coordinates Coordinates }
type SearchOutput ¶
type SearchOutput struct { Language string SearchURL string RedirectURL string Items []SearchItem }
func ParseBodySearch ¶
func ParseBodySearch(body []byte) (SearchOutput, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.