Documentation ¶
Index ¶
- func AmbilSatuFilm(mongoenvkatalogfilm, dbname, collname string, r *http.Request) string
- func AmbilSatuKomentar(mongoenvkatalogfilm, dbname, collname string, r *http.Request) string
- func AmbilSatuRating(mongoenvkatalogfilm, dbname, collname string, r *http.Request) string
- func AmbilSemuaFilm(mongoenvkatalogfilm, dbname, collname string, r *http.Request) string
- func AmbilSemuaKomentar(mongoenvkatalogfilm, dbname, collname string, r *http.Request) string
- func AmbilSemuaRating(mongoenvkatalogfilm, dbname, collname string, r *http.Request) string
- func AmbilSemuaUser(publickeykatalogfilm, mongoenvkatalogfilm, dbname, collname string, ...) string
- func Authorization(publickeykatalogfilm, mongoenvkatalogfilm, dbname, collname string, ...) 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 DeleteFilm(mconn *mongo.Database, collname string, datafilm Film) interface{}
- func DeleteKomentar(mconn *mongo.Database, collname string, datakomentar Komentar) interface{}
- func DeleteRating(mconn *mongo.Database, collname string, datarating Rating) interface{}
- func DeleteUser(mconn *mongo.Database, collname string, userdata User) interface{}
- func EditFilm(mconn *mongo.Database, collname string, datafilm Film) interface{}
- func EditKomentar(mconn *mongo.Database, collname string, datakomentar Komentar) interface{}
- func EditRating(mconn *mongo.Database, collname string, datarating Rating) interface{}
- func EditUser(mconn *mongo.Database, collname string, datauser User) interface{}
- func Encode(name, username, role, privatekey string) (string, error)
- func GenerateKey() (privatekey, publickey string)
- func HapusFilm(publickeykatalogfilm, mongoenvkatalogfilm, dbname, collname string, ...) string
- func HapusKomentar(publickeykatalogfilm, mongoenvkatalogfilm, dbname, collname string, ...) string
- func HapusRating(publickeykatalogfilm, mongoenvkatalogfilm, dbname, collname string, ...) string
- func HapusUser(publickeykatalogfilm, mongoenvkatalogfilm, dbname, collname string, ...) string
- func HashPassword(password string) (string, error)
- func IdFilmExists(mongoenvkatalogfilm, dbname string, datafilm Film) bool
- func IdKomentarExists(mongoenvkatalogfilm, dbname string, datakomentar Komentar) bool
- func IdRatingExists(mongoenvkatalogfilm, dbname string, datarating Rating) bool
- func InsertFilm(mconn *mongo.Database, collname string, datafilm Film) interface{}
- func InsertKomentar(mconn *mongo.Database, collname string, datakomentar Komentar) interface{}
- func InsertRating(mconn *mongo.Database, collname string, datarating Rating) interface{}
- func InsertUser(mconn *mongo.Database, collname string, datauser User) interface{}
- func IsPasswordValid(mconn *mongo.Database, collname string, userdata User) bool
- func Login(privatekeykatalogfilm, mongoenvkatalogfilm, dbname, collname string, ...) string
- func RatingFilmExists(mongoenvkatalogfilm, dbname string, datarating Rating) bool
- func Registrasi(mongoenvkatalogfilm, dbname, collname string, r *http.Request) string
- func ReturnStruct(DataStuct any) string
- func SetConnection(mongoenvkatalogfilm, dbname string) *mongo.Database
- func TambahFilm(publickeykatalogfilm, mongoenvkatalogfilm, dbname, collname string, ...) string
- func TambahKomentar(publickeykatalogfilm, mongoenvkatalogfilm, dbname, collname string, ...) string
- func TambahRating(publickeykatalogfilm, mongoenvkatalogfilm, dbname, collname string, ...) string
- func UpdateFilm(publickeykatalogfilm, mongoenvkatalogfilm, dbname, collname string, ...) string
- func UpdateKomentar(publickeykatalogfilm, mongoenvkatalogfilm, dbname, collname string, ...) string
- func UpdateRating(publickeykatalogfilm, mongoenvkatalogfilm, dbname, collname string, ...) string
- func UpdateUser(publickeykatalogfilm, mongoenvkatalogfilm, dbname, collname string, ...) string
- func UsernameExists(mongoenvkatalogfilm, dbname string, userdata User) bool
- type CredentialUser
- type Film
- type Komentar
- type Payload
- type Pesan
- type Rating
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AmbilSatuFilm ¶
func AmbilSatuKomentar ¶ added in v1.0.1
func AmbilSatuRating ¶ added in v1.0.2
func AmbilSemuaFilm ¶
func AmbilSemuaKomentar ¶ added in v1.0.1
func AmbilSemuaRating ¶ added in v1.0.2
func AmbilSemuaUser ¶
func Authorization ¶
func CheckPasswordHash ¶
func DecodeGetName ¶
func DecodeGetRole ¶
func DecodeGetUsername ¶
func DeleteFilm ¶
func DeleteKomentar ¶ added in v1.0.1
func DeleteRating ¶ added in v1.0.2
func DeleteUser ¶
func EditKomentar ¶ added in v1.0.1
func EditRating ¶ added in v1.0.2
func GenerateKey ¶
func GenerateKey() (privatekey, publickey string)
func HapusKomentar ¶ added in v1.0.1
func HapusRating ¶ added in v1.0.2
func HashPassword ¶
func IdFilmExists ¶ added in v1.0.1
func IdKomentarExists ¶ added in v1.0.1
func IdRatingExists ¶ added in v1.0.2
func InsertFilm ¶
func InsertKomentar ¶ added in v1.0.1
func InsertRating ¶ added in v1.0.2
func InsertUser ¶
func IsPasswordValid ¶
func RatingFilmExists ¶ added in v1.0.2
func Registrasi ¶
func ReturnStruct ¶
func SetConnection ¶
func TambahFilm ¶
func TambahKomentar ¶ added in v1.0.1
func TambahRating ¶ added in v1.0.2
func UpdateFilm ¶
func UpdateKomentar ¶ added in v1.0.1
func UpdateRating ¶ added in v1.0.2
func UpdateUser ¶
func UsernameExists ¶ added in v1.0.1
Types ¶
type CredentialUser ¶
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 Film ¶
type Film struct { ID string `json:"id" bson:"id"` Judul string `json:"judul" bson:"judul"` Image string `json:"image" bson:"image"` Tanggal string `json:"tanggal" bson:"tanggal"` Genre string `json:"genre" bson:"genre"` Sinopsis string `json:"sinopsis" bson:"sinopsis"` Penulis string `json:"penulis" bson:"penulis"` Sutradara string `json:"sutradara" bson:"sutradara"` Aktor string `json:"aktor" bson:"aktor"` }
type Komentar ¶
type Komentar struct { ID string `json:"id" bson:"id"` ID_Film string `json:"id_film" bson:"id_film"` Name string `json:"name" bson:"name"` Tanggal string `json:"tanggal" bson:"tanggal"` Komentar string `json:"komentar" bson:"komentar"` }
func FindKomentar ¶ added in v1.0.1
type Payload ¶
type Rating ¶
type Rating struct { ID string `json:"id" bson:"id"` ID_Film string `json:"id_film" bson:"id_film"` Username string `json:"username" bson:"username"` Rating int `json:"rating" bson:"rating"` Kualitas string `json:"kualitas" bson:"kualitas"` Note string `json:"note" bson:"note"` Tanggal string `json:"tanggal" bson:"tanggal"` }
func FindRating ¶ added in v1.0.2
Click to show internal directories.
Click to hide internal directories.