Documentation ¶
Index ¶
- func DeleteDataGeo(Mongoenv, dbname string, ctx context.Context, val LonLatProperties) (DeletedId interface{})
- func GCFDeleteLon(publickey, Mongostring, dbname string, r *http.Request) string
- func GCFPostCoordinate(Mongostring, Publickey, dbname, colname string, r *http.Request) string
- func GCFUpdateName(publickey, Mongostring, dbname string, r *http.Request) string
- func GCFUpdateNamee(publickey, Mongostring, dbname string, Colname string, r *http.Request) string
- func GCHandlerFunc(publickey, Mongostring, dbname, colname string, r *http.Request) string
- func GetConnectionMongo(MongoString, dbname string) *mongo.Database
- func InsertDataLonlat(MongoConn *mongo.Database, colname string, coordinate [][]float64, ...) (InsertedID interface{})
- func InsertUserdata(MongoConn *mongo.Database, username, password string) (InsertedID interface{})
- func IsExist(Tokenstr, PublicKey string) bool
- func Login(Privatekey, MongoEnv, dbname, Colname string, r *http.Request) string
- func Register(Mongoenv, dbname string, r *http.Request) string
- func ReturnStringStruct(Data any) string
- func UpdateNameGeo(Mongoenv, dbname string, ctx context.Context, val LonLatProperties) (UpdateID interface{})
- type Credents
- type GeoJson
- type GeoJsonLineString
- type GeoJsonPolygon
- type Geometry
- type GeometryLineString
- type GeometryPoint
- type GeometryPolygon
- type LonLatProperties
- type Properties
- type RegisterStruct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteDataGeo ¶
func DeleteDataGeo(Mongoenv, dbname string, ctx context.Context, val LonLatProperties) (DeletedId interface{})
func GCFDeleteLon ¶
func GCFPostCoordinate ¶
func GCFUpdateName ¶
func GCFUpdateNamee ¶ added in v0.0.2
func GCHandlerFunc ¶
func GetConnectionMongo ¶
func InsertDataLonlat ¶
func InsertUserdata ¶
func ReturnStringStruct ¶
func UpdateNameGeo ¶
func UpdateNameGeo(Mongoenv, dbname string, ctx context.Context, val LonLatProperties) (UpdateID interface{})
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"`
}
type RegisterStruct ¶
Click to show internal directories.
Click to hide internal directories.