geozone

package
v1.37.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

Types

type GeoZone

type GeoZone struct {
	mixin.Model[GeoZone]

	Type             string `json:"type"` // "country", "province", "city", "zip"
	CountryCode      string `json:"countryCode"`
	ProvinceCode     string `json:"provinceCode"`
	City             string `json:"city"`
	PostalExpression string `json:"postalExpression"`
	ServiceZoneId    string `json:"serviceZoneId"`

	Metadata  Map    `json:"metadata,omitempty" datastore:"-" orm:"default:{}"`
	Metadata_ string `json:"-" datastore:",noindex"`
}

func New

func New(db *datastore.Datastore) *GeoZone

func (*GeoZone) Load

func (g *GeoZone) Load(ps []datastore.Property) (err error)

func (*GeoZone) Save

func (g *GeoZone) Save() ([]datastore.Property, error)

Jump to

Keyboard shortcuts

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