data

package
v0.0.0-...-946fd12 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DomainPropFromTestProp

func DomainPropFromTestProp(prop *TestProperty) *properties.Property

func GenProperties

func GenProperties(
	repo repositories.PropertyRepository, uRepo repositories.UserRepository, logger *zap.SugaredLogger,
)

Types

type TestProperty

type TestProperty struct {
	Address struct {
		HouseNumber   string `json:"house_number"`
		Road          string `json:"road"`
		Neighbourhood string `json:"neighbourhood"`
		CityDistrict  string `json:"city_district"`
		Town          string `json:"town"`
		County        string `json:"county"`
		State         string `json:"state"`
		ISO31662Lvl4  string `json:"ISO3166-2-lvl4"`
		Postcode      string `json:"postcode"`
		Country       string `json:"country"`
		CountryCode   string `json:"country_code"`
	} `json:"address"`
	City        string `json:"city"`
	FullAddress string `json:"fullAddress"`
	Lat         string `json:"lat"`
	Lon         string `json:"lon"`
}

func LoadProps

func LoadProps(file fs.File) ([]TestProperty, error)

Jump to

Keyboard shortcuts

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