Documentation
¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func GCFHandler(MONGOCONNSTRINGENV, dbname, collectionname string) string
- func GCFPostHandler(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFReturnStruct(DataStuct any) string
- func HashPassword(password string) (string, error)
- func IsPasswordValid(mongoconn *mongo.Database, collection string, userdata User) bool
- func SetConnection(MONGOCONNSTRINGENV, dbname string) *mongo.Database
- type Credential
- type GeoJson
- type GeoJsonLineString
- type GeoJsonPolygon
- type Geometry
- type GeometryLineString
- type GeometryPoint
- type GeometryPolygon
- type Properties
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶ added in v0.0.5
func GCFHandler ¶ added in v0.0.3
func GCFPostHandler ¶ added in v0.0.5
func GCFReturnStruct ¶ added in v0.0.5
func HashPassword ¶ added in v0.0.5
func IsPasswordValid ¶ added in v0.0.5
func SetConnection ¶
Types ¶
type Credential ¶ added in v0.0.5
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 ¶
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 ¶
type GeometryPoint ¶
type GeometryPolygon ¶
type Properties ¶
type Properties struct {
Name string `json:"name" bson:"name"`
}
Click to show internal directories.
Click to hide internal directories.