Documentation ¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func DeleteDataGeojson(mongoconn *mongo.Database, colname string, name string) (*mongo.DeleteResult, error)
- func GCFDelDataGeo(MONGOCONNSTRINGENV, Mongostring, dbname, colname string, r *http.Request) string
- func GCFHandler(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFPostCoordinateLonLat(MONGOCONNSTRINGENV, Mongostring, dbname, collectionname string, ...) string
- func GCFPostCoordinateLonLat2(MONGOCONNSTRINGENV, Mongostring, dbname, collectionname string, ...) string
- func GCFPostHandler(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFReturnStruct(DataStuct any) string
- func GCFUpdateGeo(MONGOCONNSTRINGENV, Mongostring, dbname, colname string, r *http.Request) string
- func HashPassword(password string) (string, error)
- func InsertDataLonlat(mongoconn *mongo.Database, collection string, coordinate [][]float64, ...) (InsertedID interface{})
- func InsertUserdata(MongoConn *mongo.Database, username, password string) (InsertedID interface{})
- func IsExist(Tokenstr, PublicKey string) bool
- func IsPasswordValid(mongoconn *mongo.Database, collection string, userdata User) bool
- func SetConnection(MONGOCONNSTRINGENV, dbname string) *mongo.Database
- func SignInGCF(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func SignUpGCF(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func UpdateDataGeojson(mongoconn *mongo.Database, colname, name, newVolume, newTipe string) error
- type CoorLonLatProperties
- type Credential
- type GeoJson
- type GeoJsonLineString
- type GeoJsonPolygon
- type Geometry
- type GeometryLineString
- type GeometryPoint
- type GeometryPolygon
- type Properties
- type RegistUser
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶ added in v0.0.5
func DeleteDataGeojson ¶ added in v0.1.1
func GCFDelDataGeo ¶ added in v0.1.1
func GCFHandler ¶ added in v0.0.5
func GCFPostCoordinateLonLat ¶ added in v0.0.6
func GCFPostCoordinateLonLat2 ¶ added in v0.2.1
func GCFPostHandler ¶ added in v0.0.5
func GCFReturnStruct ¶ added in v0.0.5
func GCFUpdateGeo ¶ added in v0.1.1
func HashPassword ¶ added in v0.0.5
func InsertDataLonlat ¶
func InsertUserdata ¶ added in v0.0.8
func IsPasswordValid ¶ added in v0.0.5
func SetConnection ¶ added in v0.0.5
Types ¶
type CoorLonLatProperties ¶
type Credential ¶ added in v0.0.5
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 Properties ¶
type Properties struct {
Name string `json:"name" bson:"name"`
}
type RegistUser ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.