models

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: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug    bool
	Telegram Telegram
	Database string
	Filters  Filters
	Fotocasa Fotocasa
}

type Coordinates

type Coordinates struct {
	Accuracy  int
	Latitude  float64
	Longitude float64
}

Coordinates of the flat

type Filters

type Filters struct {
	LocationName     string `js:"-" json:"LocationName"`
	MaximumPrice     int    `js:"-" json:"Maximum_price"`
	MinimumPrice     int    `js:"-" json:"Minimum_price"`
	MaximumSurface   int    `js:"-" json:"Maximum_sueface"`
	MinimumSurface   int    `js:"-" json:"Minimum_surface"`
	MaximumRooms     int    `js:"-" json:"Maximum_rooms"`
	MinimumRooms     int    `js:"-" json:"Minimum_rooms"`
	MinimumBathrooms int    `js:"-" json:"Minimum_bathrooms"`
}

type Fotocasa

type Fotocasa struct {
	TransactionType      string
	SortType             string
	CombinedLocationIds  string
	Latitude             float64
	Longitude            float64
	MinutesCheckInterval int
}

type House

type House struct {
	Title       string
	Description string
	Address     string
	Email       string
	Phone       string
	Price       int
	Reduced     int
	URL         string
	Picture     string
	Surface     int
	Floor       int
	Elevator    bool
	Rooms       int
	Bathrooms   int
}

House description

type Telegram

type Telegram struct {
	BotID        string
	ChannelID    string
	SendMessages bool
}

Jump to

Keyboard shortcuts

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