Documentation
¶
Index ¶
- func Autorisasi(publickey, MONGOCONNSTRINGENV, dbname, collname string, r *http.Request) string
- func CheckPasswordHash(password, hash string) bool
- func CreateWisata(MONGOCONNSTRING, dbname, collectionname string, tempat TempatWisata) error
- func DecodeGetRole(publickey string, tokenstring string) string
- func DecodeGetUsername(publickey string, tokenstring string) string
- func DeleteWisata(MONGOCONNSTRING, dbname, collectionname string, filter bson.D) error
- func Encode(name, username, role, privatekey string) (string, error)
- func GCFHandler(MONGOCONNSTRINGENV, dbname, collectionname string) string
- func GCFPostHandler(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFReturnStruct(DataStuct any) string
- func GenerateKey() (privatekey, publickey string)
- func HashPassword(password string) (string, error)
- func IsPasswordValid(mongoconn *mongo.Database, collection string, userdata User) bool
- func SetConnection(MONGOCONNSTRINGENV, dbname string) *mongo.Database
- func SignupGCF(w http.ResponseWriter, r *http.Request)
- func UpdateWisata(MONGOCONNSTRING, dbname, collectionname string, filter bson.D, update bson.D) error
- type Credential
- type CredentialUser
- type GeoJson
- type GeoJsonLineString
- type GeoJsonPolygon
- type Geometry
- type GeometryLineString
- type GeometryPoint
- type GeometryPolygon
- type Lokasi
- type Payload
- type Properties
- type SignupPayload
- type TempatWisata
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Autorisasi ¶ added in v1.1.6
func CheckPasswordHash ¶
func CreateWisata ¶ added in v1.1.1
func CreateWisata(MONGOCONNSTRING, dbname, collectionname string, tempat TempatWisata) error
func DecodeGetRole ¶ added in v1.1.6
func DecodeGetUsername ¶ added in v1.1.6
func DeleteWisata ¶ added in v1.1.1
func GCFHandler ¶
func GCFPostHandler ¶
func GCFReturnStruct ¶
func GenerateKey ¶ added in v1.1.6
func GenerateKey() (privatekey, publickey string)
func HashPassword ¶
func IsPasswordValid ¶
func SetConnection ¶
Types ¶
type Credential ¶
type CredentialUser ¶ added in v1.1.6
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 Payload ¶ added in v1.1.6
type Properties ¶
type Properties struct {
Name string `json:"name" bson:"name"`
}
type SignupPayload ¶ added in v1.1.0
type TempatWisata ¶ added in v1.1.1
type TempatWisata struct {
Nama string `json:"nama"`
Jenis string `json:"jenis"`
Deskripsi string `json:"deskripsi"`
Lokasi Lokasi `json:"lokasi"`
Alamat string `json:"alamat"`
Gambar string `json:"gambar"`
Rating float64 `json:"rating"`
}
func Geocoding ¶ added in v1.1.2
func Geocoding(MONGOCONNSTRINGENV, dbname, collectionname string, query string) ([]TempatWisata, error)
Geocoding (untuk menemukan lokasi dari konten yang sudah dibuat)
func ReadWisata ¶ added in v1.1.1
func ReadWisata(MONGOCONNSTRING, dbname, collectionname string) ([]TempatWisata, error)
Click to show internal directories.
Click to hide internal directories.