Documentation ¶
Index ¶
- Constants
- func GetCreateTableRequest(config DynGeoConfig) *dynamodb.CreateTableInput
- type BatchWritePointOutput
- type DeletePointInput
- type DeletePointOutput
- type DynGeo
- func (dg DynGeo) BatchWritePoints(inputs []PutPointInput) (*BatchWritePointOutput, error)
- func (dg DynGeo) DeletePoint(input DeletePointInput) (*DeletePointOutput, error)
- func (dg DynGeo) GetPoint(input GetPointInput) (*GetPointOutput, error)
- func (dg DynGeo) PutPoint(input PutPointInput) (*PutPointOutput, error)
- func (dg DynGeo) QueryRadius(input QueryRadiusInput, out interface{}) error
- func (dg DynGeo) QueryRectangle(input QueryRectangleInput, out interface{}) error
- func (dg DynGeo) UpdatePoint(input UpdatePointInput) (*UpdatePointOutput, error)
- type DynGeoConfig
- type GeoJSONAttribute
- type GeoPoint
- type GeoQueryInput
- type GeoQueryOutput
- type GetPointInput
- type GetPointOutput
- type PointInput
- type PutPointInput
- type PutPointOutput
- type QueryRadiusInput
- type QueryRadiusOutput
- type QueryRectangleInput
- type QueryRectangleOutput
- type UpdatePointInput
- type UpdatePointOutput
Constants ¶
View Source
const EARTH_RADIUS_METERS = 6367000.0
S2 Util
View Source
const MERGE_THRESHOLD = 2
MERGE_THRESHOLD ...
Variables ¶
This section is empty.
Functions ¶
func GetCreateTableRequest ¶
func GetCreateTableRequest(config DynGeoConfig) *dynamodb.CreateTableInput
Types ¶
type BatchWritePointOutput ¶
type BatchWritePointOutput struct {
*dynamodb.BatchWriteItemOutput
}
type DeletePointInput ¶
type DeletePointInput struct { PointInput DeleteItemInput dynamodb.DeleteItemInput }
type DeletePointOutput ¶
type DeletePointOutput struct {
*dynamodb.DeleteItemOutput
}
type DynGeo ¶
type DynGeo struct { Config DynGeoConfig // contains filtered or unexported fields }
func (DynGeo) BatchWritePoints ¶
func (dg DynGeo) BatchWritePoints(inputs []PutPointInput) (*BatchWritePointOutput, error)
func (DynGeo) DeletePoint ¶
func (dg DynGeo) DeletePoint(input DeletePointInput) (*DeletePointOutput, error)
func (DynGeo) GetPoint ¶
func (dg DynGeo) GetPoint(input GetPointInput) (*GetPointOutput, error)
func (DynGeo) PutPoint ¶
func (dg DynGeo) PutPoint(input PutPointInput) (*PutPointOutput, error)
func (DynGeo) QueryRadius ¶
func (dg DynGeo) QueryRadius(input QueryRadiusInput, out interface{}) error
func (DynGeo) QueryRectangle ¶
func (dg DynGeo) QueryRectangle(input QueryRectangleInput, out interface{}) error
func (DynGeo) UpdatePoint ¶
func (dg DynGeo) UpdatePoint(input UpdatePointInput) (*UpdatePointOutput, error)
type DynGeoConfig ¶
type DynGeoConfig struct { TableName string ConsistentRead bool HashKeyAttributeName string RangeKeyAttributeName string GeoHashAttributeName string GeoJSONAttributeName string GeoHashIndexName string HashKeyLength int8 LongitudeFirst bool DynamoDBClient *dynamodb.DynamoDB // contains filtered or unexported fields }
type GeoJSONAttribute ¶
type GeoQueryInput ¶
type GeoQueryInput struct {
QueryInput dynamodb.QueryInput
}
type GeoQueryOutput ¶
type GeoQueryOutput struct {
*dynamodb.QueryOutput
}
type GetPointInput ¶
type GetPointInput struct { PointInput GetItemInput dynamodb.GetItemInput }
type GetPointOutput ¶
type GetPointOutput struct {
*dynamodb.GetItemOutput
}
type PointInput ¶
type PutPointInput ¶
type PutPointInput struct { PointInput PutItemInput dynamodb.PutItemInput }
type PutPointOutput ¶
type PutPointOutput struct {
*dynamodb.PutItemOutput
}
type QueryRadiusInput ¶
type QueryRadiusInput struct { GeoQueryInput CenterPoint GeoPoint RadiusInMeter int }
type QueryRadiusOutput ¶
type QueryRadiusOutput struct {
*GeoQueryOutput
}
type QueryRectangleInput ¶
type QueryRectangleInput struct { GeoQueryInput MinPoint *GeoPoint MaxPoint *GeoPoint }
type QueryRectangleOutput ¶
type QueryRectangleOutput struct {
*GeoQueryOutput
}
type UpdatePointInput ¶
type UpdatePointInput struct { PointInput UpdateItemInput dynamodb.UpdateItemInput }
type UpdatePointOutput ¶
type UpdatePointOutput struct {
*dynamodb.UpdateItemOutput
}
Click to show internal directories.
Click to hide internal directories.