search

package
v0.0.0-...-57057ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	In  time.Time
	Out time.Time
}

type Coordinates

type Coordinates struct {
	Latitude float64
	Longitud float64
}

type CoordinatesInput

type CoordinatesInput struct {
	Ne CoordinatesValues
	Sw CoordinatesValues
}

type CoordinatesValues

type CoordinatesValues struct {
	Latitude float64
	Longitud float64
}

type Data

type Data struct {
	RoomID           int64
	Badges           []string
	Name             string
	Title            string
	Type             string
	Kind             string
	Category         string
	Rating           Rating
	Coordinates      Coordinates
	Fee              Fee
	Price            PriceData
	LongStayDiscount Price
	Images           []Img
}

type Fee

type Fee struct {
	Cleaning Price
	Airbn    Price
}

type Img

type Img struct {
	URL         string
	ContentType string
	Extension   string
	Content     []byte `json:"-"`
}

type InputData

type InputData struct {
	Coordinates CoordinatesInput
	Check       Check
	ZoomValue   int
}

func (InputData) SearchAll

func (input InputData) SearchAll(currency string, proxyURL *url.URL) ([]Data, error)

func (InputData) SearchFirstPage

func (input InputData) SearchFirstPage(currency string, proxyURL *url.URL) ([]Data, error)

type Price

type Price struct {
	Amount         float32
	CurrencySymbol string
}

type PriceBreakDown

type PriceBreakDown struct {
	Description    string
	Amount         float32
	CurrencySymbol string
}

type PriceData

type PriceData struct {
	Total     Price
	Unit      UnitPrice
	BreakDown []PriceBreakDown
}

type Rating

type Rating struct {
	Value       float32
	ReviewCount int
}

type UnitPrice

type UnitPrice struct {
	Qualifier string
	Discount  float32
	Price
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL