utils

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Box

func Box(mconn *mongo.Database, collname string, geospatial models.Geospatial) ([]models.FullGeoJson, error)

func Center added in v1.0.8

func Center(mconn *mongo.Database, collname string, geospatial models.Geospatial) ([]models.FullGeoJson, error)

func CenterSphere added in v1.0.8

func CenterSphere(mconn *mongo.Database, collname string, geospatial models.Geospatial) ([]models.FullGeoJson, error)

func DeleteComics added in v1.2.1

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

func DeleteUser

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

func FindUser

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

func GeoIntersects

func GeoIntersects(mconn *mongo.Database, collname string, geospatial models.Geospatial) ([]models.FullGeoJson, error)

func GeoWithin

func GeoWithin(mconn *mongo.Database, collname string, geospatial models.Geospatial) ([]models.FullGeoJson, error)

func GeojsonNameString added in v1.1.4

func GeojsonNameString(geojson []models.FullGeoJson) (result string)

func GetAllBangunan

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

func GetAllComics added in v1.2.1

func GetAllComics(mconn *mongo.Database, collname string) ([]models.Comics, error)

func GetAllFilteredComics added in v1.2.1

func GetAllFilteredComics(mconn *mongo.Database, collname string, datacomics models.Comics) ([]models.Comics, error)

func GetAllUser

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

func GetOneComics added in v1.2.1

func GetOneComics(mconn *mongo.Database, collname string, userdata models.Comics) models.Comics

func InsertComics added in v1.2.1

func InsertComics(mongoenv *mongo.Database, collname string, datauser models.Comics) (interface{}, error)

func InsertUser

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

func IsPasswordValid

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

func Near

func Near(mconn *mongo.Database, collname string, geospatial models.Geospatial) ([]models.FullGeoJson, error)

func NearSphere

func NearSphere(mconn *mongo.Database, collname string, geospatial models.Geospatial) ([]models.FullGeoJson, error)

func PostLinestring

func PostLinestring(mconn *mongo.Database, collection string, linestringdata models.GeoJsonLineString) (interface{}, error)

func PostPoint

func PostPoint(mconn *mongo.Database, collection string, pointdata models.GeoJsonPoint) (interface{}, error)

func PostPolygon

func PostPolygon(mconn *mongo.Database, collection string, polygondata models.GeoJsonPolygon) (interface{}, error)

func SetConnection

func SetConnection(mongoenv, dbname string) *mongo.Database

func SetConnection2dsphere

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

func SetConnectionPostgres added in v1.2.1

func SetConnectionPostgres(host, user, password, dbname, port, ssl string) *sql.DB

func UpdateComics added in v1.2.1

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

func UpdateUser

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

func UsernameExists

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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