Documentation ¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func DeleteDataGeojson(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 GCFPostHandler(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) 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 HashPassword(password string) (string, error)
- func InsertDataLonlat(MongoConn *mongo.Database, colname string, coordinate []float64, ...) (InsertedID interface{})
- func InsertUser(db *mongo.Database, collection string, userdata User) string
- func IsPasswordValid(mongoconn *mongo.Database, collection string, userdata User) bool
- func ReturnStringStruct(Data any) string
- func UpdateDataGeojson(MongoConn *mongo.Database, colname, name, newVolume, newTipe string) error
- type Credential
- type Credents
- type GeoJson
- type GeoJsonLineString
- type GeoJsonPolygon
- type Geometry
- type GeometryLineString
- type GeometryPoint
- type GeometryPolygon
- type LonLatProperties
- type Properties
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶ added in v0.0.4
func DeleteDataGeojson ¶ added in v0.0.5
func GCFDeleteDataGeojson ¶ added in v0.0.5
func GCFPostCoordinate ¶ added in v0.0.2
func GCFPostHandler ¶ added in v0.0.6
func GCFUpdateNameGeojson ¶ added in v0.0.5
func GCHandlerFunc ¶ added in v0.0.2
func GetConnectionMongo ¶ added in v0.0.2
func HashPassword ¶ added in v0.0.4
func InsertDataLonlat ¶ added in v0.0.2
func InsertUser ¶ added in v0.0.4
func IsPasswordValid ¶ added in v0.0.6
func ReturnStringStruct ¶
Types ¶
type Credential ¶
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"` }
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 GeometryPoint ¶ added in v0.0.2
type GeometryPolygon ¶ added in v0.0.2
type LonLatProperties ¶ added in v0.0.2
type Properties ¶ added in v0.0.2
type Properties struct {
Name string `json:"name" bson:"name"`
}
Click to show internal directories.
Click to hide internal directories.