Documentation ¶
Index ¶
- func DeleteDatajson(MongoConn *mongo.Database, colname string, name string) (*mongo.DeleteResult, error)
- func GCFDeleteDataGeojson(Mongostring, dbname, colname string, r *http.Request) string
- func GCFPostCoordinate(Mongostring, dbname, colname string, r *http.Request) string
- func GCFUpdateNameGeojson(Mongostring, dbname, colname string, r *http.Request) string
- func GCHandlerFunc(Mongostring, dbname, colname string) string
- func GetConnectionMongo(MongoString, dbname string) *mongo.Database
- func InsertDatajson(MongoConn *mongo.Database, colname string, coordinate []float64, ...) (InsertedID interface{})
- func ReturnStringStruct(Data any) string
- func UpdateDatajson(MongoConn *mongo.Database, colname, name, newVolume, newTipe string) error
- type Credents
- type GeoJson
- type GeoJsonLineString
- type GeoJsonPolygon
- type Geometry
- type GeometryLineString
- type GeometryPoint
- type GeometryPolygon
- type LonLatProperties
- type Properties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteDatajson ¶
func GCFDeleteDataGeojson ¶
func GCFPostCoordinate ¶
func GCFUpdateNameGeojson ¶
func GCHandlerFunc ¶
func GetConnectionMongo ¶
func InsertDatajson ¶
func ReturnStringStruct ¶
Types ¶
type GeoJson ¶
type GeoJson struct { Type string `json:"type" bson:"type"` Properties Properties `json:"properties" bson:"properties"` Geometry Geometry `json:"geometry" bson:"geometry"` }
type GeoJsonLineString ¶
type GeoJsonLineString struct { Type string `json:"type" bson:"type"` Properties Properties `json:"properties" bson:"properties"` Geometry GeometryLineString `json:"geometry" bson:"geometry"` }
type GeoJsonPolygon ¶
type GeoJsonPolygon struct { Type string `json:"type" bson:"type"` Properties Properties `json:"properties" bson:"properties"` Geometry GeometryPolygon `json:"geometry" bson:"geometry"` }
type Geometry ¶
type Geometry struct { Coordinates interface{} `json:"coordinates" bson:"coordinates"` Type string `json:"type" bson:"type"` }
type GeometryLineString ¶
type GeometryPoint ¶
type GeometryPolygon ¶
type LonLatProperties ¶
type Properties ¶
type Properties struct {
Name string `json:"name" bson:"name"`
}
Click to show internal directories.
Click to hide internal directories.