Documentation ¶
Index ¶
- func AmbilDataGeojson(publickey, mongoenv, dbname, collname string, r *http.Request) string
- func AmbilDataJadwal(mongoenv, dbname, collname string) string
- func AmbilDataKegiatan(mongoenv, dbname, collname string) string
- func AmbilSemuaUser(publickey, mongoenv, dbname, collname string, r *http.Request) string
- func Authorization(publickey, mongoenv, dbname, collname string, r *http.Request) string
- func CheckPasswordHash(password, hash string) bool
- func DecodeGetName(publickey string, tokenstring string) string
- func DecodeGetRole(publickey string, tokenstring string) string
- func DecodeGetUsername(publickey string, tokenstring string) string
- func DeleteGeojson(mongoenv *mongo.Database, collname string, userdata User) interface{}
- func DeleteUser(mongoenv *mongo.Database, collname string, userdata User) interface{}
- func EditUser(mongoenv *mongo.Database, collname string, datauser User) interface{}
- func Encode(name, username, role, privatekey string) (string, error)
- func GenerateKey() (privatekey, publickey string)
- func GeoIntersects(mongoconn *mongo.Database, collname string, long float64, lat float64) (namalokasi string)
- func GeoWithin(mongoconn *mongo.Database, collname string, coordinates [][][]float64) (namalokasi string)
- func HapusUser(publickey, mongoenv, dbname, collname string, r *http.Request) string
- func HashPassword(password string) (string, error)
- func InsertUser(mongoenv *mongo.Database, collname string, datauser User) interface{}
- func IsPasswordValid(mongoenv *mongo.Database, collname string, userdata User) bool
- func Login(privatekey, mongoenv, dbname, collname string, r *http.Request) string
- func MembuatGeojsonPoint(publickey, mongoenv, dbname, collname string, r *http.Request) string
- func MembuatGeojsonPolygon(publickey, mongoenv, dbname, collname string, r *http.Request) string
- func MembuatGeojsonPolyline(publickey, mongoenv, dbname, collname string, r *http.Request) string
- func Near(mongoconn *mongo.Database, collname string, long float64, lat float64) (namalokasi string)
- func PostGeoIntersects(mongoenv, dbname, collname string, r *http.Request) string
- func PostGeoWithin(mongoenv, dbname, collname string, r *http.Request) string
- func PostLinestring(mongoconn *mongo.Database, collection string, linestringdata GeoJsonLineString) interface{}
- func PostNear(mongoenv, dbname, collname string, r *http.Request) string
- func PostPoint(mongoconn *mongo.Database, collection string, pointdata GeoJsonPoint) interface{}
- func PostPolygon(mongoconn *mongo.Database, collection string, polygondata GeoJsonPolygon) interface{}
- func Registrasi(publickey, mongoenv, dbname, collname string, r *http.Request) string
- func ReturnStruct(DataStuct any) string
- func SetConnection(mongoenv, dbname string) *mongo.Database
- func SetConnection2dsphere(mongoenv, dbname string) *mongo.Database
- func UpdateUser(publickey, mongoenv, dbname, collname string, r *http.Request) string
- type CredentialUser
- type FullGeoJson
- type GeoJson
- type GeoJsonLineString
- type GeoJsonPoint
- type GeoJsonPolygon
- type Geometry
- type Jadwal
- type Kegiatan
- type LongLat
- type Payload
- type Pesan
- type Properties
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AmbilDataGeojson ¶
func AmbilDataJadwal ¶
func AmbilDataKegiatan ¶
func AmbilSemuaUser ¶ added in v1.3.2
func Authorization ¶ added in v1.0.5
func CheckPasswordHash ¶
func DecodeGetName ¶ added in v1.3.2
func DecodeGetRole ¶ added in v1.3.2
func DecodeGetUsername ¶ added in v1.3.2
func DeleteGeojson ¶ added in v1.3.2
func DeleteUser ¶
func GenerateKey ¶ added in v1.3.2
func GenerateKey() (privatekey, publickey string)
func GeoIntersects ¶ added in v1.1.6
func HashPassword ¶
func InsertUser ¶ added in v1.3.2
func IsPasswordValid ¶
func MembuatGeojsonPoint ¶
func MembuatGeojsonPolygon ¶
func MembuatGeojsonPolyline ¶
func PostGeoIntersects ¶ added in v1.1.6
func PostGeoWithin ¶ added in v1.1.8
func PostLinestring ¶
func PostLinestring(mongoconn *mongo.Database, collection string, linestringdata GeoJsonLineString) interface{}
func PostPoint ¶
func PostPoint(mongoconn *mongo.Database, collection string, pointdata GeoJsonPoint) interface{}
func PostPolygon ¶
func PostPolygon(mongoconn *mongo.Database, collection string, polygondata GeoJsonPolygon) interface{}
func Registrasi ¶ added in v1.1.6
func ReturnStruct ¶
func SetConnection ¶
func SetConnection2dsphere ¶ added in v1.1.9
Types ¶
type CredentialUser ¶ added in v1.1.6
type CredentialUser struct { Status bool `json:"status" bson:"status"` Data struct { Name string `json:"name" bson:"name"` Username string `json:"username" bson:"username"` Role string `json:"role" bson:"role"` } `json:"data" bson:"data"` Message string `json:"message,omitempty" bson:"message,omitempty"` }
type FullGeoJson ¶ added in v1.3.2
type FullGeoJson struct { ID primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"` Type string `json:"type" bson:"type"` Properties Properties `json:"properties" bson:"properties"` Geometry Geometry `json:"geometry" bson:"geometry"` }
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 struct { Coordinates [][]float64 `json:"coordinates" bson:"coordinates"` Type string `json:"type" bson:"type"` } `json:"geometry" bson:"geometry"` }
type GeoJsonPoint ¶
type GeoJsonPoint struct { Type string `json:"type" bson:"type"` Properties Properties `json:"properties" bson:"properties"` Geometry struct { Coordinates []float64 `json:"coordinates" bson:"coordinates"` Type string `json:"type" bson:"type"` } `json:"geometry" bson:"geometry"` }
type GeoJsonPolygon ¶
type GeoJsonPolygon struct { Type string `json:"type" bson:"type"` Properties Properties `json:"properties" bson:"properties"` Geometry struct { Coordinates [][][]float64 `json:"coordinates" bson:"coordinates"` Type string `json:"type,omitempty" bson:"type,omitempty"` } `json:"geometry" bson:"geometry"` }
type Geometry ¶
type Geometry struct { Coordinates interface{} `json:"coordinates" bson:"coordinates"` Type string `json:"type" bson:"type"` }
type Jadwal ¶
type Kegiatan ¶
type Payload ¶ added in v1.3.2
type Properties ¶
type Properties struct {
Name string `json:"name" bson:"name"`
}
Click to show internal directories.
Click to hide internal directories.