fotocasa

package
v0.0.0-...-cfe2003 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HouseChan chan *models.House
)

Functions

func Init

func Init(database *bolt.DB, communicationChannel chan *models.House, configuration models.Fotocasa, searchFilters models.Filters)

Init Fotocasa

func TickerCheck

func TickerCheck(ctx context.Context, ctxCancel context.CancelFunc)

TickerCheck ...

Types

type Address

type Address struct {
	Ubication   string             `js:"-" json:"ubication"`
	Location    map[string]string  `js:"-" json:"location"`
	Coordinates models.Coordinates `js:"-" json:"coordinates"`
}

type Detail

type Detail struct {
	IDs             string             `js:"-" json:"es"`
	Coordinates     models.Coordinates `js:"-" json:"coordinates"`
	LocationLiteral string             `js:"-" json:"locationLiteral"`
}

type Features

type Features struct {
	Key   string `js:"-" json:"key"`
	Value []int  `js:"-" json:"value"`
}

type FotocasaHouse

type FotocasaHouse struct {
	ID            int64                  `js:"-" json:"id"`
	New           bool                   `js:"-" json:"isNew"`
	Premium       bool                   `js:"-" json:"isPremium"`
	Advertiser    map[string]interface{} `js:"-" json:"advertiser"`
	Detail        HouseDetail            `js:"-" json:"detail"`
	Multimedias   []interface{}          `js:"-" json:"multimedias"`
	Features      []Features             `js:"-" json:"features"`
	OtherFeatures []interface{}          `js:"-" json:"otherFeatures"`
	Transactions  []Transactions         `js:"-" json:"transactions"`
	Products      []interface{}          `js:"-" json:"products"`
	Address       Address                `js:"-" json:"address"`
	Date          time.Time              `js:"-" json:"date"`
	Description   string                 `js:"-" json:"description"`
}

type FotocasaHouses

type FotocasaHouses struct {
	Count  int64           `js:"-" json:"count"`
	Houses []FotocasaHouse `js:"-" json:"realEstates"`
}

type HouseDetail

type HouseDetail struct {
	ES string `js:"-" json:"es"`
}

type Location

type Location struct {
	Location string `js:"-" json:"location"`
	Zone     string `js:"-" json:"zone"`
	Text     string `js:"-" json:"text"`
}

Location ...

type LocationSegments

type LocationSegments struct {
	IDs             string             `js:"-" json:"ids"`
	Coordinates     models.Coordinates `js:"-" json:"coordinates"`
	LocationLiteral string             `js:"-" json:"locationLiteral"`
}

LocationSegments ...

type Transactions

type Transactions struct {
	TypeID  int     `js:"-" json:"transactionTypeId"`
	Value   []int64 `js:"-" json:"value"`
	Reduced int64   `js:"-" json:"reduced"`
}

Jump to

Keyboard shortcuts

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