Documentation
¶
Index ¶
- type Address
- type Route
- type Storage
- func (s *Storage) AddAddresses(address ...*Address) error
- func (s *Storage) AddRoute(route *Route) error
- func (s *Storage) AddZone(zone *Zone) error
- func (s *Storage) DeleteAddress(id uint) error
- func (s *Storage) DeleteRoute(id uint) error
- func (s *Storage) DeleteZone(id uint) error
- func (s *Storage) DropTables() error
- func (s *Storage) FindAddressesInPolygon(polygon georm.Polygon) ([]Address, error)
- func (s *Storage) FindRoutesInterZone(zone *Zone) ([]Route, error)
- func (s *Storage) FindZonesContainingPoint(point georm.Point) ([]Zone, error)
- func (s *Storage) GetAddress(id uint) (*Address, error)
- func (s *Storage) GetRoute(id uint) (*Route, error)
- func (s *Storage) GetZone(id uint) (*Zone, error)
- func (s *Storage) MigrationTables() error
- func (s *Storage) UpdateAddress(address *Address) error
- func (s *Storage) UpdateRoute(route *Route) error
- func (s *Storage) UpdateZone(zone *Zone) error
- type Zone
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Route ¶
type Route struct { ID uint `gorm:"primaryKey"` Title string GeoRoute georm.LineString }
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func (*Storage) AddAddresses ¶
func (*Storage) DeleteAddress ¶
func (*Storage) DeleteRoute ¶
func (*Storage) DeleteZone ¶
func (*Storage) DropTables ¶
func (*Storage) FindAddressesInPolygon ¶
FindAddressesInPolygon finds addresses that are inside a polygon
func (*Storage) FindRoutesInterZone ¶
FindRoutesInterZone finds routes that intersect with a zone
func (*Storage) FindZonesContainingPoint ¶
FindZonesContainingPoint finds zones that contain a point
func (*Storage) MigrationTables ¶
func (*Storage) UpdateAddress ¶
func (*Storage) UpdateRoute ¶
func (*Storage) UpdateZone ¶
Click to show internal directories.
Click to hide internal directories.