Documentation ¶
Index ¶
- func AmbilDataBerita(publickey, mongoenv, dbname, colluser, collberita string, r *http.Request) string
- func AmbilDataGeojson(publickey, mongoenv, dbname, colluser, collgeojson string, r *http.Request) string
- func AmbilDataJadwal(mongoenv, dbname, collname string) string
- func AmbilDataKegiatan(mongoenv, dbname, collname string) string
- func AmbilSatuBerita(publickey, mongoenv, dbname, colluser, collberita string, r *http.Request) string
- func Authorization(publickey, mongoenv, dbname, collname string, r *http.Request) string
- func CheckPasswordHash(password, hash string) bool
- func DeleteBerita(mongoenv *mongo.Database, collname string, databerita Berita) interface{}
- func DeleteUser(mongoenv *mongo.Database, collname string, userdata User) interface{}
- func EditBerita(mongoenv *mongo.Database, collname string, databerita Berita) interface{}
- func EditUser(mongoenv *mongo.Database, collname, name, email, username, password string, ...) interface{}
- func GeoIntersects(mongoconn *mongo.Database, long float64, lat float64) (namalokasi string)
- func GeoWithin(mongoconn *mongo.Database, coordinates [][][]float64) (namalokasi string)
- func HapusBerita(publickey, mongoenv, dbname, colluser, collberita string, r *http.Request) string
- func HapusUser(publickey, mongoenv, dbname, collname string, r *http.Request) string
- func HashPassword(password string) (string, error)
- func InsertBerita(mongoenv *mongo.Database, collname string, databerita Berita) interface{}
- func InsertUserdata(mongoenv *mongo.Database, collname, name, email, username, password string, ...) (InsertedID interface{})
- func IsPasswordValid(mongoenv *mongo.Database, collname string, userdata User) bool
- func Login(privatekey, mongoenv, dbname, collname string, r *http.Request) string
- func MemasukkanKoordinat(MongoConn *mongo.Database, colname string, coordinate []float64, ...) (InsertedID interface{})
- func MembuatGeojsonPoint(publickey, mongoenv, dbname, colluser, collgeojson string, r *http.Request) string
- func MembuatGeojsonPolygon(publickey, mongoenv, dbname, colluser, collgeojson string, r *http.Request) string
- func MembuatGeojsonPolyline(publickey, mongoenv, dbname, colluser, collgeojson string, r *http.Request) string
- func Near(mongoconn *mongo.Database, long float64, lat float64) (namalokasi string)
- func PostGeoIntersects(mongoenv, dbname string, r *http.Request) string
- func PostGeoWithin(mongoenv, dbname string, r *http.Request) string
- func PostLinestring(mongoconn *mongo.Database, collection string, linestringdata GeoJsonLineString) interface{}
- func PostNear(mongoenv, dbname 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(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 SetConnectionTest(mongostring, dbname string) *mongo.Database
- func SetConnectionTest2dsphere(mongostring, dbname string) *mongo.Database
- func TambahBerita(publickey, mongoenv, dbname, colluser, collberita string, r *http.Request) string
- func UpdateBerita(publickey, mongoenv, dbname, colluser, collberita string, r *http.Request) string
- func UpdateUser(publickey, mongoenv, dbname, collname string, r *http.Request) string
- type Berita
- type Coordinate
- type CredentialBerita
- type CredentialGeojson
- type CredentialUser
- type GeoJson
- type GeoJsonLineString
- type GeoJsonPoint
- type GeoJsonPolygon
- type Geometry
- type GeometryLineString
- type GeometryPoint
- type GeometryPolygon
- type Jadwal
- type Kegiatan
- type Lokasi
- type LongLat
- type Name
- type Paragraf
- type Pesan
- type Properties
- type SemuaRole
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AmbilDataBerita ¶
func AmbilDataGeojson ¶
func AmbilDataJadwal ¶
func AmbilDataKegiatan ¶
func AmbilSatuBerita ¶
func Authorization ¶
func CheckPasswordHash ¶
func DeleteBerita ¶
func DeleteUser ¶
func EditBerita ¶
func GeoIntersects ¶
func HapusBerita ¶
func HashPassword ¶
func InsertBerita ¶
func InsertUserdata ¶
func IsPasswordValid ¶
func MemasukkanKoordinat ¶
func MembuatGeojsonPoint ¶
func MembuatGeojsonPolygon ¶
func MembuatGeojsonPolyline ¶
func PostGeoWithin ¶ added in v1.0.2
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 ReturnStruct ¶
func SetConnection ¶
func SetConnection2dsphere ¶ added in v1.0.5
func SetConnectionTest ¶
func SetConnectionTest2dsphere ¶ added in v1.0.5
func TambahBerita ¶
func UpdateBerita ¶
Types ¶
type Berita ¶
type Berita struct { ID string `json:"id" bson:"id"` Kategori string `json:"kategori" bson:"kategori"` Judul string `json:"judul" bson:"judul"` Preview string `json:"preview" bson:"preview"` Konten Paragraf `json:"konten" bson:"konten"` }
func FindBerita ¶
type Coordinate ¶
type CredentialBerita ¶
type CredentialGeojson ¶
type CredentialUser ¶
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 ¶
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 Jadwal ¶
type Kegiatan ¶
type Paragraf ¶
type Paragraf struct { Paragraf1 string `json:"paragraf1,omitempty" bson:"paragraf1,omitempty"` Paragraf2 string `json:"paragraf2,omitempty" bson:"paragraf2,omitempty"` Paragraf3 string `json:"paragraf3,omitempty" bson:"paragraf3,omitempty"` Paragraf4 string `json:"paragraf4,omitempty" bson:"paragraf4,omitempty"` Paragraf5 string `json:"paragraf5,omitempty" bson:"paragraf5,omitempty"` Paragraf6 string `json:"paragraf6,omitempty" bson:"paragraf6,omitempty"` Paragraf7 string `json:"paragraf7,omitempty" bson:"paragraf7,omitempty"` Paragraf8 string `json:"paragraf8,omitempty" bson:"paragraf8,omitempty"` Paragraf9 string `json:"paragraf9,omitempty" bson:"paragraf9,omitempty"` Paragraf10 string `json:"paragraf10,omitempty" bson:"paragraf10,omitempty"` }
type Properties ¶
type Properties struct {
Name string `json:"name" bson:"name"`
}
type User ¶
type User struct { Name string `json:"name,omitempty" bson:"name,omitempty"` Email string `json:"email,omitempty" bson:"email,omitempty"` Username string `json:"username" bson:"username"` Password string `json:"password" bson:"password"` Role SemuaRole `json:"role,omitempty" bson:"role,omitempty"` }
Click to show internal directories.
Click to hide internal directories.