utils

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorization

func Authorization(publickey string) gin.HandlerFunc

func Box

func Box(mconn *mongo.Database, collname string, coordinates models.Polyline) string

func DeleteGeojson

func DeleteGeojson(mconn *mongo.Database, collname string, userdata models.User) interface{}

func DeleteUser

func DeleteUser(mconn *mongo.Database, collname string, userdata models.User) interface{}

func FindUser

func FindUser(mconn *mongo.Database, collname string, userdata models.User) models.User

func GeoIntersects

func GeoIntersects(mconn *mongo.Database, collname string, coordinates models.Point) string

func GeoWithin

func GeoWithin(mconn *mongo.Database, collname string, coordinates models.Polygon) string

func GetAllBangunan

func GetAllBangunan(mconn *mongo.Database, collname string) []models.GeoJson

func GetAllUser

func GetAllUser(mconn *mongo.Database, collname string) []models.User

func InsertUser

func InsertUser(mongoenv *mongo.Database, collname string, datauser models.User) interface{}

func IsPasswordValid

func IsPasswordValid(mconn *mongo.Database, collname string, userdata models.User) bool

func Near

func Near(mconn *mongo.Database, collname string, coordinates models.Point) string

func NearSphere

func NearSphere(mconn *mongo.Database, collname string, coordinates models.Point) string

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 SetConnection(mongoenv, dbname string) *mongo.Database

func SetConnection2dsphere

func SetConnection2dsphere(mongoenv, dbname, collname string) *mongo.Database

func UpdateUser

func UpdateUser(mconn *mongo.Database, collname string, datauser models.User) interface{}

func UsernameExists

func UsernameExists(mconn *mongo.Database, collname string, userdata models.User) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL