Versions in this module Expand all Collapse all v0 v0.1.2 Jan 23, 2023 Changes in this version + type Config struct + func MakeConfig(opts ...GeoOptions) *Config + func (cfg Config) Valid() error + type ErrFailedToConvertItemToGeoPoint struct + func (e ErrFailedToConvertItemToGeoPoint) Error() string + type ErrMissingDynamoClient struct + func (ErrMissingDynamoClient) Error() string + type ErrMissingDynamoTableName struct + func (ErrMissingDynamoTableName) Error() string + type ErrPaginatedQueryInvalidLimit struct + func (ErrPaginatedQueryInvalidLimit) Error() string + type Geo struct + func (g Geo) BatchWritePoints(ctx context.Context, inputs []PutPointInput) (*BatchWritePointOutput, error) + func (g Geo) DeletePoint(ctx context.Context, input DeletePointInput) (*DeletePointOutput, error) + func (g Geo) GetPoint(ctx context.Context, input GetPointInput) (*GetPointOutput, error) + func (g Geo) PutPoint(ctx context.Context, input PutPointInput) (*PutPointOutput, error) + func (g Geo) QueryRadius(ctx context.Context, input QueryRadiusInput, out interface{}) error + func (g Geo) QueryRadiusPaginated(ctx context.Context, input QueryRadiusInput, ...) (GeoHashToLastEvaluatedDBValue, error) + func (g Geo) QueryRectangle(ctx context.Context, input QueryRectangleInput, out interface{}) error + func (g Geo) UpdatePoint(ctx context.Context, input UpdatePointInput) (*UpdatePointOutput, error) + type GeoOptions func(c *Config) + func WithConsistentRead(consistentRead bool) GeoOptions + func WithDynamoClient(client *dynamodb.Client) GeoOptions + func WithGeoHashkey(attributeName string) GeoOptions + func WithGeoIndex(name string) GeoOptions + func WithGeoJSONKey(attributeName string) GeoOptions + func WithHashkey(attributeName string) GeoOptions + func WithHashkeyLen(len int8) GeoOptions + func WithLongitudeFirst(f bool) GeoOptions + func WithRangekey(attributeName string) GeoOptions + func WithRetryOnFilterOfRadiusQuery(maxRetries, multiplier int) GeoOptions + func WithS2RegionCoverer(s2rc s2.RegionCoverer) GeoOptions + func WithTableName(name string) GeoOptions + func WithUnmarshalAsJSON(f bool) GeoOptions v0.1.1 Jan 8, 2023 Changes in this version type DynGeoConfig + UnmarshalAsJSON bool v0.1.0 Jan 3, 2023 Changes in this version + const EARTH_RADIUS_METERS + const MERGE_THRESHOLD + func GetCreateTableRequest(config DynGeoConfig) *dynamodb.CreateTableInput + type BatchWritePointOutput struct + type DeletePointInput struct + DeleteItemInput dynamodb.DeleteItemInput + type DeletePointOutput struct + type DynGeo struct + Config DynGeoConfig + func New(config DynGeoConfig) (*DynGeo, error) + func (dg DynGeo) BatchWritePoints(ctx context.Context, inputs []PutPointInput) (*BatchWritePointOutput, error) + func (dg DynGeo) DeletePoint(ctx context.Context, input DeletePointInput) (*DeletePointOutput, error) + func (dg DynGeo) GetPoint(ctx context.Context, input GetPointInput) (*GetPointOutput, error) + func (dg DynGeo) PutPoint(ctx context.Context, input PutPointInput) (*PutPointOutput, error) + func (dg DynGeo) QueryRadius(ctx context.Context, input QueryRadiusInput, out interface{}) error + func (dg DynGeo) QueryRadiusPaginated(ctx context.Context, input QueryRadiusInput, ...) (GeoHashToLastEvaluatedDBValue, error) + func (dg DynGeo) QueryRectangle(ctx context.Context, input QueryRectangleInput, out interface{}) error + func (dg DynGeo) UpdatePoint(ctx context.Context, input UpdatePointInput) (*UpdatePointOutput, error) + type DynGeoConfig struct + ConsistentRead bool + DynamoDBClient *dynamodb.Client + GeoHashAttributeName string + GeoHashIndexName string + GeoJSONAttributeName string + HashKeyAttributeName string + HashKeyLength int8 + LongitudeFirst bool + RangeKeyAttributeName string + TableName string + type GeoHashToLastEvaluatedDBValue map[uint64]map[string]types.AttributeValue + type GeoJSONAttribute struct + Coordinates []float64 + Type string + type GeoPoint struct + Latitude float64 + Longitude float64 + type GeoQueryInput struct + QueryInput dynamodb.QueryInput + type GeoQueryOutput struct + type GetPointInput struct + GetItemInput dynamodb.GetItemInput + type GetPointOutput struct + type PointInput struct + GeoPoint GeoPoint + RangeKeyValue types.AttributeValue + type PutPointInput struct + PutItemInput dynamodb.PutItemInput + type PutPointOutput struct + type QueryRadiusInput struct + CenterPoint GeoPoint + RadiusInMeter int + type QueryRadiusOutput struct + type QueryRectangleInput struct + MaxPoint *GeoPoint + MinPoint *GeoPoint + type QueryRectangleOutput struct + type UpdatePointInput struct + UpdateItemInput dynamodb.UpdateItemInput + type UpdatePointOutput struct