MCPcopy Create free account

hub / github.com/akhenakh/regionagogo / functions

Functions96 in github.com/akhenakh/regionagogo

↓ 13 callersMethodClose
Close the DB
geofence.go:30
↓ 8 callersMethodFenceByID
FenceByID returns a region from DB by its id
db/boltdb/geofence_boltdb.go:240
↓ 8 callersMethodStart
()
importer.go:41
↓ 7 callersFunctionNewGeoFenceBoltDB
NewGeoFenceBoltDB creates or reopen a bolt geo database
db/boltdb/geofence_boltdb.go:89
↓ 7 callersFunctioncreateTempDB
(t testing.TB)
db/boltdb/geofence_boltdb_test.go:73
↓ 5 callersMethodStubbingQuery
StubbingQuery returns the fence for the corresponding lat, lng point
db/boltdb/geofence_boltdb.go:276
↓ 4 callersMethodHighAtDimension
HighAtDimension returns an integer representing the higher bound at the requested dimension.
stree.go:20
↓ 4 callersMethodLen
()
fence.go:131
↓ 4 callersMethodLowAtDimension
LowAtDimension returns an integer representing the lower bound at the requested dimension.
stree.go:16
↓ 4 callersMethodString
()
cmd/ragogenfromjson/main.go:20
↓ 4 callersFunctionWithDebug
WithDebug enable debug
db/boltdb/geofence_boltdb.go:75
↓ 3 callersMethodGetRegion
Obtains the region at a given position.
regionagogosvc/regionagogosvc.pb.go:93
↓ 3 callersMethodStubbingQuery
returns the fence for the corresponding lat, lng coordinates
geofence.go:18
↓ 2 callersMethodStoreFence
Store a Fence into the DB
geofence.go:27
↓ 2 callersMethodToGeoJSON
ToGeoJSON transforms a Region to a valid GeoJSON
fence.go:40
↓ 2 callersMethodindex
index indexes each cells of the cover and set its loopID
db/boltdb/geofence_boltdb.go:160
↓ 2 callersFunctionitob
itob returns an 8-byte big endian representation of v.
db/boltdb/geofence_boltdb.go:463
↓ 2 callersFunctionpreparePolygon
preparePolygon transform a geojson polygons into FenceStorage
importer.go:116
↓ 1 callersMethodClose
()
mobile/mobile.go:44
↓ 1 callersMethodFenceByID
returns a Fence by it's storage id
geofence.go:15
↓ 1 callersFunctionNewGeoDB
()
mobile/mobile.go:20
↓ 1 callersFunctionNewGeoFenceIdx
NewGeoFenceIdx a geo index over a BoltDB storage
db/boltdb/geofence_boltdb.go:105
↓ 1 callersMethodOpenDB
(path string)
mobile/mobile.go:30
↓ 1 callersMethodQueryHandler
(lat, lng float64)
mobile/mobile.go:64
↓ 1 callersMethodSet
(value string)
cmd/ragogenfromjson/main.go:24
↓ 1 callersMethodimportGeoData
importGeoData loads all existing cells into the segment tree
db/boltdb/geofence_boltdb.go:195
↓ 1 callersFunctionisClockwisePolygon
(p geojson.Coordinates)
importer.go:186
↓ 1 callersFunctionreversePolygon
(p geojson.Coordinates)
importer.go:198
↓ 1 callersFunctions2RadialAreaMeters
(radius float64)
db/boltdb/geofence_boltdb.go:412
FunctionBenchmarkCities
(tb *testing.B)
db/boltdb/geofence_boltdb_test.go:107
MethodDescriptor
()
regionagogosvc/regionagogosvc.pb.go:44
MethodDescriptor
()
regionagogosvc/regionagogosvc.pb.go:67
MethodDescriptor
()
geostore/geostore.pb.go:41
MethodDescriptor
()
geostore/geostore.pb.go:66
MethodDescriptor
()
geostore/geostore.pb.go:90
MethodFenceByID
(id int)
mobile/mobile.go:48
MethodGetCellunion
()
geostore/geostore.pb.go:92
MethodGetCode
()
regionagogosvc/regionagogosvc.pb.go:69
MethodGetData
()
geostore/geostore.pb.go:50
MethodGetLat
()
geostore/geostore.pb.go:68
MethodGetLatitude
()
regionagogosvc/regionagogosvc.pb.go:46
MethodGetLng
()
geostore/geostore.pb.go:75
MethodGetLongitude
()
regionagogosvc/regionagogosvc.pb.go:53
MethodGetPoints
()
geostore/geostore.pb.go:43
MethodGetRegion
(ctx context.Context, in *Point, opts ...grpc.CallOption)
regionagogosvc/regionagogosvc.pb.go:104
MethodGetRegion
Obtains the region at a given position.
regionagogosvc/regionagogosvc.pb.go:117
MethodGetRegion
(ctx context.Context, p *pb.Point)
cmd/regionagogo/main.go:23
MethodID
ID should be a unique ID representing this interval. This is used to identify which interval to delete from the tree if there are duplicates.
stree.go:32
MethodLess
(i, j int)
fence.go:133
FunctionNewFence
()
mobile/mobile.go:25
FunctionNewFenceFromStorage
NewFenceFromStorage returns a Fence from a FenceStorage Fence can be extended, FenceStorage is a protocol buffer instance
fence.go:21
FunctionNewGeoJSONImport
ImportGeoJSONFile will load a geo json and save the polygons into the GeoFence for later lookup importFields are the properties fields names you want
importer.go:29
FunctionNewRegionAGogoClient
(cc *grpc.ClientConn)
regionagogosvc/regionagogosvc.pb.go:100
MethodOverlapsAtDimension
OverlapsAtDimension should return a bool indicating if the provided interval overlaps this interval at the dimension requested.
stree.go:24
MethodProtoMessage
()
regionagogosvc/regionagogosvc.pb.go:43
MethodProtoMessage
()
regionagogosvc/regionagogosvc.pb.go:66
MethodProtoMessage
()
geostore/geostore.pb.go:40
MethodProtoMessage
()
geostore/geostore.pb.go:65
MethodProtoMessage
()
geostore/geostore.pb.go:89
MethodRadiusQuery
RadiusQuery is performing a radius query
geofence.go:24
MethodRadiusQuery
RadiusQuery is performing a radius query
db/boltdb/geofence_boltdb.go:381
MethodRectQuery
RectQuery perform rectangular query ur upper right bl bottom left
geofence.go:21
MethodRectQuery
RectQuery perform rectangular query ur upper right bl bottom left
db/boltdb/geofence_boltdb.go:340
FunctionRegisterRegionAGogoServer
(s *grpc.Server, srv RegionAGogoServer)
regionagogosvc/regionagogosvc.pb.go:120
MethodReset
()
regionagogosvc/regionagogosvc.pb.go:41
MethodReset
()
regionagogosvc/regionagogosvc.pb.go:64
MethodReset
()
geostore/geostore.pb.go:38
MethodReset
()
geostore/geostore.pb.go:63
MethodReset
()
geostore/geostore.pb.go:87
MethodStoreFence
StoreFence stores a fence into the database and load its index in memory
db/boltdb/geofence_boltdb.go:418
MethodString
()
regionagogosvc/regionagogosvc.pb.go:42
MethodString
()
regionagogosvc/regionagogosvc.pb.go:65
MethodString
()
geostore/geostore.pb.go:39
MethodString
()
geostore/geostore.pb.go:64
MethodString
()
geostore/geostore.pb.go:88
MethodSwap
(i, j int)
fence.go:132
FunctionTestBadCover
(t *testing.T)
db/boltdb/geofence_boltdb_test.go:216
FunctionTestBogusLoop
(t *testing.T)
db/boltdb/geofence_boltdb_test.go:246
FunctionTestCCW
(t *testing.T)
db/boltdb/geofence_boltdb_test.go:131
FunctionTestCities
(t *testing.T)
db/boltdb/geofence_boltdb_test.go:151
FunctionTestOverlappingRegion
(t *testing.T)
db/boltdb/geofence_boltdb_test.go:182
FunctionTestStorage
(t *testing.T)
mobile/mobile_test.go:9
FunctionTestStorage
(t *testing.T)
db/boltdb/geofence_boltdb_test.go:84
MethodToGeoJSON
ToGeoJSON transforms a set of Fences to a valid GeoJSON
fence.go:84
FunctionWithCachedEntries
WithCachedEntries enable an LRU cache default is disabled
db/boltdb/geofence_boltdb.go:68
FunctionWithCoverBucket
WithCoverBucket set the cover bucket name
db/boltdb/geofence_boltdb.go:61
FunctionWithLoopBucket
WithLoopBucket set the loop bucket name
db/boltdb/geofence_boltdb.go:54
FunctionWithMultipleFences
WithMultipleFences enable multi fences in responses
geofence.go:42
FunctionWithReadOnly
WithReadOnly enable read only db
db/boltdb/geofence_boltdb.go:82
Function_RegionAGogo_GetRegion_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
regionagogosvc/regionagogosvc.pb.go:124
Functioninit
()
regionagogosvc/regionagogosvc.pb.go:76
Functioninit
()
geostore/geostore.pb.go:99
Functionmain
()
cmd/regionagogo/main.go:76
Functionmain
()
cmd/regionagogoclient/main.go:18
Functionmain
()
cmd/ragogenfromjson/main.go:33
MethodqueryHandler
queryHandler takes a lat & lng query params and return a JSON with the country of the coordinate
cmd/regionagogo/main.go:44