backendgeogis

package module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 12 Imported by: 0

README

backendgeogis

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDataGeo added in v0.0.2

func DeleteDataGeo(Mongoenv, dbname string, ctx context.Context, val LonLatProperties) (DeletedId interface{})

func GCFDeleteLon added in v0.0.2

func GCFDeleteLon(publickey, Mongostring, dbname string, r *http.Request) string

func GCFPostCoordinate added in v0.0.2

func GCFPostCoordinate(Mongostring, Publickey, dbname, colname string, r *http.Request) string

func GCFUpdateName added in v0.0.2

func GCFUpdateName(publickey, Mongostring, dbname string, r *http.Request) string

func GCFUpdateNamee added in v0.0.5

func GCFUpdateNamee(publickey, Mongostring, dbname string, Colname string, r *http.Request) string

func GCHandlerFunc added in v0.0.2

func GCHandlerFunc(publickey, Mongostring, dbname, colname string, r *http.Request) string

func GetConnectionMongo

func GetConnectionMongo(MongoString, dbname string) *mongo.Database

func InsertDataLonlat added in v0.0.2

func InsertDataLonlat(MongoConn *mongo.Database, colname string, coordinate []float64, name, volume, tipe string) (InsertedID interface{})

func InsertUserdata

func InsertUserdata(MongoConn *mongo.Database, username, password string) (InsertedID interface{})

func IsExist added in v0.0.2

func IsExist(Tokenstr, PublicKey string) bool

func Login

func Login(Privatekey, MongoEnv, dbname, Colname string, r *http.Request) string

func Register

func Register(Mongoenv, dbname string, r *http.Request) string

func ReturnStringStruct

func ReturnStringStruct(Data any) string

func UpdateNameGeo added in v0.0.2

func UpdateNameGeo(Mongoenv, dbname string, ctx context.Context, val LonLatProperties) (UpdateID interface{})

Types

type Credents added in v0.0.2

type Credents struct {
	Status  string `json:"status" bson:"status"`
	Message string `json:"message" bson:"message"`
}

type GeoJson added in v0.0.2

type GeoJson struct {
	Type       string     `json:"type" bson:"type"`
	Properties Properties `json:"properties" bson:"properties"`
	Geometry   Geometry   `json:"geometry" bson:"geometry"`
}

func GetAllGeoData added in v0.0.2

func GetAllGeoData(MongoConnect *mongo.Database, colname string) []GeoJson

type GeoJsonLineString added in v0.0.2

type GeoJsonLineString struct {
	Type       string             `json:"type" bson:"type"`
	Properties Properties         `json:"properties" bson:"properties"`
	Geometry   GeometryLineString `json:"geometry" bson:"geometry"`
}

type GeoJsonPolygon added in v0.0.2

type GeoJsonPolygon struct {
	Type       string          `json:"type" bson:"type"`
	Properties Properties      `json:"properties" bson:"properties"`
	Geometry   GeometryPolygon `json:"geometry" bson:"geometry"`
}

type Geometry added in v0.0.2

type Geometry struct {
	Coordinates interface{} `json:"coordinates" bson:"coordinates"`
	Type        string      `json:"type" bson:"type"`
}

type GeometryLineString added in v0.0.2

type GeometryLineString struct {
	Coordinates [][]float64 `json:"coordinates" bson:"coordinates"`
	Type        string      `json:"type" bson:"type"`
}

type GeometryPoint added in v0.0.2

type GeometryPoint struct {
	Coordinates []float64 `json:"coordinates" bson:"coordinates"`
	Type        string    `json:"type" bson:"type"`
}

type GeometryPolygon added in v0.0.2

type GeometryPolygon struct {
	Coordinates [][][]float64 `json:"coordinates" bson:"coordinates"`
	Type        string        `json:"type" bson:"type"`
}

type LonLatProperties added in v0.0.2

type LonLatProperties struct {
	Type        string    `json:"type" bson:"type"`
	Name        string    `json:"name" bson:"name"`
	Volume      string    `json:"volume" bson:"volume"`
	Coordinates []float64 `json:"coordinates" bson:"coordinates, omitempty"`
}

type Properties added in v0.0.2

type Properties struct {
	Name string `json:"name" bson:"name"`
}

type RegisterStruct added in v0.0.2

type RegisterStruct struct {
	Username string `json:"username" bson:"username"`
	Password string `json:"password" bson:"password"`
}

Jump to

Keyboard shortcuts

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