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 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 ¶ added in v0.0.8
func DeleteDataGeo(Mongoenv, dbname string, ctx context.Context, val LonLatProperties) (DeletedId interface{})
func GCFDeleteLon ¶ added in v0.0.8
func GCFPostCoordinate ¶ added in v0.0.5
func GCFUpdateName ¶ added in v0.0.8
func GCHandlerFunc ¶
func GetConnectionMongo ¶
func InsertDataLonlat ¶ added in v0.0.5
func InsertUserdata ¶ added in v0.0.8
func ReturnStringStruct ¶ added in v0.0.5
func UpdateNameGeo ¶ added in v0.0.8
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 ¶ added in v0.0.5
type Properties ¶
type Properties struct {
Name string `json:"name" bson:"name"`
}
type RegisterStruct ¶ added in v0.0.8
Click to show internal directories.
Click to hide internal directories.