Documentation ¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func CreateUser(mongoenv, dbname, collname string, r *http.Request) string
- 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 InsertUserdata(mongoenv *mongo.Database, collname, username, role, password string) (InsertedID interface{})
- func IsPasswordValid(mongoconn *mongo.Database, collection string, userdata User) bool
- func MembuatGeojsonPointToken(mongoenv, dbname, collname string, r *http.Request) string
- func MembuatGeojsonPoligonToken(mongoenv, dbname, collname string, r *http.Request) string
- func MembuatGeojsonPolylineToken(mongoenv, dbname, collname string, r *http.Request) string
- func MengambilGeojsonToken(mongoenv, dbname, collname string, r *http.Request) string
- func PostLinestring(mongoconn *mongo.Database, collection string, linestringdata GeoJsonLineString) interface{}
- func PostPoint(mongoconn *mongo.Database, collection string, pointdata GeoJsonPoint) interface{}
- func PostPolygon(mongoconn *mongo.Database, collection string, polygondata GeoJsonPolygon) interface{}
- func SetConnection(MONGOCONNSTRINGENV, dbname string) *mongo.Database
- type Credential
- type GeoJson
- type GeoJsonLineString
- type GeoJsonPoint
- type GeoJsonPolygon
- type Geometry
- type GeometryLineString
- type GeometryPoint
- type GeometryPolygon
- type Jaja
- type Properties
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func GCFHandler ¶
func GCFPostHandler ¶
func GCFReturnStruct ¶
func HashPassword ¶
func InsertUserdata ¶
func IsPasswordValid ¶
func MembuatGeojsonPointToken ¶ added in v1.0.1
func MembuatGeojsonPoligonToken ¶ added in v1.0.1
func MembuatGeojsonPolylineToken ¶ added in v1.0.1
func MengambilGeojsonToken ¶ added in v1.0.1
func PostLinestring ¶ added in v1.0.1
func PostLinestring(mongoconn *mongo.Database, collection string, linestringdata GeoJsonLineString) interface{}
func PostPoint ¶ added in v1.0.1
func PostPoint(mongoconn *mongo.Database, collection string, pointdata GeoJsonPoint) interface{}
func PostPolygon ¶ added in v1.0.1
func PostPolygon(mongoconn *mongo.Database, collection string, polygondata GeoJsonPolygon) interface{}
func SetConnection ¶
Types ¶
type Credential ¶
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 GeoJsonPoint ¶ added in v1.0.1
type GeoJsonPoint struct { Type string `json:"type" bson:"type"` Properties Properties `json:"properties" bson:"properties"` Geometry GeometryPoint `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 Jaja ¶ added in v1.0.1
type Jaja struct { Status bool `json:"status" bson:"status"` Message string `json:"message" bson:"message"` Data interface{} `json:"data" bson:"data"` }
func CreateResponse ¶ added in v1.0.1
type Properties ¶
type Properties struct {
Name string `json:"name" bson:"name"`
}
Click to show internal directories.
Click to hide internal directories.