Documentation ¶
Index ¶
- Constants
- Variables
- type Address
- func (add *Address) Clone() *Address
- func (a *Address) CreateQueries(db orm.DB) []*orm.Query
- func (a *Address) DeleteQueries(db orm.DB) []*orm.Query
- func (a *Address) GetEntityID() EID
- func (a *Address) GetLabel() string
- func (a *Address) SetLabel(l string)
- func (a *Address) UpdateQueries(db orm.DB) []*orm.Query
- type AddressInsertable
- type Addresses
- type Location
- func (loc *Location) AddressString() (string, error)
- func (l *Location) ArchiveQueries(db orm.DB) []*orm.Query
- func (loc *Location) Clone() *Location
- func (l *Location) CreateQueries(db orm.DB) []*orm.Query
- func (l *Location) DeleteQueries(db orm.DB) []*orm.Query
- func (l *Location) GetAddress1() string
- func (l *Location) GetAddress2() string
- func (l *Location) GetCity() string
- func (l *Location) GetLat() sql.NullFloat64
- func (l *Location) GetLng() sql.NullFloat64
- func (l *Location) GetState() string
- func (l *Location) GetZip() string
- func (loc *Location) IsAddressComplete() bool
- func (loc *Location) IsAddressEmpty() bool
- func (loc *Location) IsComplete() bool
- func (loc *Location) IsLatLngComplete() bool
- func (loc *Location) IsLatLngEmpty() bool
- func (l *Location) SetAddress1(a1 string)
- func (l *Location) SetAddress2(a2 string)
- func (l *Location) SetCity(c string)
- func (l *Location) SetState(s string)
- func (l *Location) SetZip(z string)
- func (l *Location) UpdateQueries(db orm.DB) []*orm.Query
Constants ¶
View Source
const LocationsResName = ResourceName(`locations`)
Variables ¶
View Source
var LocationFields = append(EntityFields,
`address1`,
`address2`,
`city`,
`state`,
`zip`,
`lat`,
`lng`)
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { Location EntityID EID `json:"-" sql:",pk"` Label string `json:"label"` // contains filtered or unexported fields }
func NewAddress ¶
func (*Address) CreateQueries ¶
A single Address is not directly managed. Management is at the Addresses level.
func (*Address) GetEntityID ¶
func (a *Address) GetEntityID() EID
type AddressInsertable ¶
type Location ¶
type Location struct { Entity Address1 string `json:"address1"` Address2 string `json:"address2"` City string `json:"city"` State string `json:"state"` Zip string `json:"zip"` Lat sql.NullFloat64 `json:"lat" pg:",use_zero"` Lng sql.NullFloat64 `json:"lng" pg:",use_zero"` ChangeDesc []string `json:"changeDesc,omitempty" sql:"-"` }
func NewLocation ¶
func (*Location) AddressString ¶
func (*Location) GetAddress1 ¶
func (*Location) GetAddress2 ¶
func (*Location) GetLat ¶
func (l *Location) GetLat() sql.NullFloat64
func (*Location) GetLng ¶
func (l *Location) GetLng() sql.NullFloat64
func (*Location) IsAddressComplete ¶
func (*Location) IsAddressEmpty ¶
func (*Location) IsComplete ¶
func (*Location) IsLatLngComplete ¶
func (*Location) IsLatLngEmpty ¶
func (*Location) SetAddress1 ¶
func (*Location) SetAddress2 ¶
Click to show internal directories.
Click to hide internal directories.