Documentation ¶
Index ¶
- func Authorization(publickey string) gin.HandlerFunc
- func Box(mconn *mongo.Database, collname string, coordinates models.Polyline) string
- func DeleteGeojson(mconn *mongo.Database, collname string, userdata models.User) interface{}
- func DeleteUser(mconn *mongo.Database, collname string, userdata models.User) interface{}
- func FindUser(mconn *mongo.Database, collname string, userdata models.User) models.User
- func GeoIntersects(mconn *mongo.Database, collname string, coordinates models.Point) string
- func GeoWithin(mconn *mongo.Database, collname string, coordinates models.Polygon) string
- func GetAllBangunan(mconn *mongo.Database, collname string) []models.GeoJson
- func GetAllUser(mconn *mongo.Database, collname string) []models.User
- func InsertUser(mongoenv *mongo.Database, collname string, datauser models.User) interface{}
- func IsPasswordValid(mconn *mongo.Database, collname string, userdata models.User) bool
- func Near(mconn *mongo.Database, collname string, coordinates models.Point) string
- func NearSphere(mconn *mongo.Database, collname string, coordinates models.Point) string
- func PostLinestring(mconn *mongo.Database, collection string, ...) interface{}
- func PostPoint(mconn *mongo.Database, collection string, pointdata models.GeoJsonPoint) interface{}
- func PostPolygon(mconn *mongo.Database, collection string, polygondata models.GeoJsonPolygon) interface{}
- func SetConnection(mongoenv, dbname string) *mongo.Database
- func SetConnection2dsphere(mongoenv, dbname, collname string) *mongo.Database
- func UpdateUser(mconn *mongo.Database, collname string, datauser models.User) interface{}
- func UsernameExists(mconn *mongo.Database, collname string, userdata models.User) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authorization ¶
func Authorization(publickey string) gin.HandlerFunc
func DeleteGeojson ¶
func DeleteUser ¶
func GeoIntersects ¶
func InsertUser ¶
func IsPasswordValid ¶
func NearSphere ¶
func PostLinestring ¶
func PostLinestring(mconn *mongo.Database, collection string, linestringdata models.GeoJsonLineString) interface{}
func PostPoint ¶
func PostPoint(mconn *mongo.Database, collection string, pointdata models.GeoJsonPoint) interface{}
func PostPolygon ¶
func PostPolygon(mconn *mongo.Database, collection string, polygondata models.GeoJsonPolygon) interface{}
func SetConnection ¶
func SetConnection2dsphere ¶
func UpdateUser ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.