Documentation ¶
Index ¶
- func DeleteBerita(mconn *mongo.Database, collname string, databerita models.Berita) interface{}
- func DeleteKomentar(mconn *mongo.Database, collname string, datakomentar models.Komentar) interface{}
- func DeleteUser(mconn *mongo.Database, collname string, userdata models.Users) interface{}
- func FindBerita(mconn *mongo.Database, collname string, databerita models.Berita) models.Berita
- func FindKomentar(mconn *mongo.Database, collname string, datakomentar models.Komentar) models.Komentar
- func FindUser(mconn *mongo.Database, collname string, userdata models.Users) models.Users
- func FindVerifikasi(mconn *mongo.Database, collname string, datauser models.Users) models.Verifikasi
- func GetAllBerita(mconn *mongo.Database, collname string) ([]models.Berita, error)
- func GetAllKomentar(mconn *mongo.Database, collname string) ([]models.Komentar, error)
- func GetAllUser(mconn *mongo.Database, collname string) ([]models.Users, error)
- func IDBeritaExists(mconn *mongo.Database, collname string, databerita models.Berita) bool
- func IDKomentarExists(mconn *mongo.Database, collname string, datakomentar models.Komentar) bool
- func InsertBerita(mongoenv *mongo.Database, collname string, databerita models.Berita) (interface{}, error)
- func InsertKomentar(mongoenv *mongo.Database, collname string, datakomentar models.Komentar) (interface{}, error)
- func InsertUser(mongoenv *mongo.Database, collname string, datauser models.Users) (interface{}, error)
- func InsertVerifikasi(mongoenv *mongo.Database, collname string, dataverifikasi models.Verifikasi) (interface{}, error)
- func IsPasswordValid(mconn *mongo.Database, collname string, userdata models.Users) bool
- func SetConnection(mongoenv, dbname string) *mongo.Database
- func UpdateBerita(mconn *mongo.Database, collname string, databerita models.Berita) interface{}
- func UpdateKomentar(mconn *mongo.Database, collname string, datakomentar models.Komentar) interface{}
- func UpdateUser(mconn *mongo.Database, collname string, datauser models.Users) interface{}
- func UsernameExists(mconn *mongo.Database, collname string, userdata models.Users) bool
- func VerifikasiExists(mconn *mongo.Database, collname string, dataverifikasi models.Verifikasi) bool
- func VerifikasiUsernameExists(mconn *mongo.Database, collname string, dataverifikasi models.Verifikasi) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteBerita ¶
func DeleteKomentar ¶
func DeleteUser ¶
func FindBerita ¶
func FindKomentar ¶
func FindVerifikasi ¶ added in v1.0.1
func GetAllBerita ¶
func GetAllKomentar ¶
func IDBeritaExists ¶
func IDKomentarExists ¶
func InsertBerita ¶
func InsertKomentar ¶
func InsertUser ¶
func InsertVerifikasi ¶ added in v1.0.1
func IsPasswordValid ¶
func SetConnection ¶
func UpdateBerita ¶
func UpdateKomentar ¶
func UpdateUser ¶
func UsernameExists ¶
func VerifikasiExists ¶ added in v1.0.1
func VerifikasiUsernameExists ¶ added in v1.0.2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.