Documentation
¶
Index ¶
- type Response
- type Storage
- func (s *Storage) AddPoint(ctx context.Context, p internal.Point) error
- func (s *Storage) AddPointBatch(ctx context.Context, points []internal.Point) error
- func (s *Storage) AddPolygon(ctx context.Context, p internal.Polygon) error
- func (s *Storage) AddPolygonBatch(ctx context.Context, polygon []internal.Polygon) error
- func (s *Storage) Drop(ctx context.Context) error
- func (s *Storage) DropPolygon(ctx context.Context) error
- func (s *Storage) GetInPolygon(ctx context.Context, polygon []internal.Point) ([]internal.Point, error)
- func (s *Storage) GetInPolygonPolygon(ctx context.Context, polygon internal.Polygon) ([]internal.Polygon, error)
- func (s *Storage) GetInRadius(ctx context.Context, p internal.Point, radius int) ([]internal.Point, error)
- func (s *Storage) GetInRadiusPolygon(ctx context.Context, p internal.Polygon, radius int) ([]internal.Polygon, error)
- func (s *Storage) GetInShapes(ctx context.Context, shape internal.Shapes) ([]internal.Point, error)
- func (s *Storage) GetIntersectionPoint(ctx context.Context, point internal.Point) ([]internal.Polygon, error)
- func (s *Storage) GetIntersectionPolygon(ctx context.Context, polygon internal.Polygon) ([]internal.Polygon, error)
- func (s *Storage) Init(ctx context.Context) error
- func (s *Storage) InitPolygon(ctx context.Context) error
- func (s *Storage) Ping() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) AddPointBatch ¶
func (*Storage) AddPolygon ¶
func (*Storage) AddPolygonBatch ¶
func (*Storage) GetInPolygon ¶
func (*Storage) GetInPolygonPolygon ¶
func (*Storage) GetInRadius ¶
func (*Storage) GetInRadiusPolygon ¶
func (*Storage) GetInShapes ¶
func (*Storage) GetIntersectionPoint ¶
func (*Storage) GetIntersectionPolygon ¶
Click to show internal directories.
Click to hide internal directories.