geozone

package
v1.34.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 4 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

	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:"-"`
	Metadata_ string `json:"-" datastore:",noindex"`
}

func New

func New(db *datastore.Datastore) *GeoZone

func (*GeoZone) Defaults

func (g *GeoZone) Defaults()

func (*GeoZone) Init

func (g *GeoZone) Init(db *datastore.Datastore)

func (GeoZone) Kind

func (g GeoZone) Kind() string

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