htdbtypes

package
v0.0.0-...-412d769 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FTTP    Nbn = "FTTP"
	FTTN        = "FTTN"
	FTTC        = "FTTC"
	FTTB        = "FTTB"
	HFC         = "HFC"
	Unknown     = "Unknown"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Street   string `bson:"street,omitempty"`
	Suburb   string `bson:"suburb,omitempty"`
	Postcode string `bson:"postcode,omitempty"`
	State    string `bson:"state,omitempty"`
}

Address is

type Location

type Location struct {
	Latitude  float32 `bson:"latitude,omitempty"`
	Longitude float32 `bson:"longitude,omitempty"`
	PlaceID   string  `bson:"placeid,omitempty"`
}

Location is

type Nbn

type Nbn string

Nbn is

type Property

type Property struct {
	ID         primitive.ObjectID    `bson:"_id,omitempty"`
	Address    Address               `bson:"address,omitempty"`
	Location   Location              `bson:"location,omitempty"`
	Price      string                `bson:"price,omitempty"`
	Layout     PropertyConfiguration `bson:"layout,omitempty"`
	RawScore   PropertyScore         `bson:"rawscore,omitempty"`
	References []Reference           `bson:"references,omitempty"`
	Tags       []string              `bson:"tags,omitempty"`
	Notes      string                `bson:"notes,omitempty"`
}

Property is

type PropertyConfiguration

type PropertyConfiguration struct {
	Bedrooms   int32 `bson:"bedrooms,omitempty"`
	Bathrooms  int32 `bson:"bathrooms,omitempty"`
	Parking    int32 `bson:"parking,omitempty"`
	ExtraRooms bool  `bson:"extrarooms,omitempty"`
	Nbn        Nbn   `bson:"nbn,omitempty"`
}

PropertyConfiguration is

type PropertyScore

type PropertyScore struct {
	Quality         int32
	Safety          int32
	OutdoorArea     int32
	Bedrooms        int32
	Kitchen         int32
	PublicTransport int32
	LivingArea      int32
	Bathrooms       int32
	LocalArea       int32
}

PropertyScore is

type Reference

type Reference struct {
	Type  string
	Value string
}

Reference is

Jump to

Keyboard shortcuts

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