utils

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteBerita

func DeleteBerita(mconn *mongo.Database, collname string, databerita models.Berita) interface{}

func DeleteKomentar

func DeleteKomentar(mconn *mongo.Database, collname string, datakomentar models.Komentar) interface{}

func DeleteUser

func DeleteUser(mconn *mongo.Database, collname string, userdata models.Users) interface{}

func FindBerita

func FindBerita(mconn *mongo.Database, collname string, databerita models.Berita) models.Berita

func FindKomentar

func FindKomentar(mconn *mongo.Database, collname string, datakomentar models.Komentar) models.Komentar

func FindUser

func FindUser(mconn *mongo.Database, collname string, userdata models.Users) models.Users

func FindVerifikasi added in v1.0.1

func FindVerifikasi(mconn *mongo.Database, collname string, datauser models.Users) models.Verifikasi

func GetAllBerita

func GetAllBerita(mconn *mongo.Database, collname string) ([]models.Berita, error)

func GetAllKomentar

func GetAllKomentar(mconn *mongo.Database, collname string) ([]models.Komentar, error)

func GetAllUser

func GetAllUser(mconn *mongo.Database, collname string) ([]models.Users, error)

func IDBeritaExists

func IDBeritaExists(mconn *mongo.Database, collname string, databerita models.Berita) bool

func IDKomentarExists

func IDKomentarExists(mconn *mongo.Database, collname string, datakomentar models.Komentar) bool

func InsertBerita

func InsertBerita(mongoenv *mongo.Database, collname string, databerita models.Berita) (interface{}, error)

func InsertKomentar

func InsertKomentar(mongoenv *mongo.Database, collname string, datakomentar models.Komentar) (interface{}, error)

func InsertUser

func InsertUser(mongoenv *mongo.Database, collname string, datauser models.Users) (interface{}, error)

func InsertVerifikasi added in v1.0.1

func InsertVerifikasi(mongoenv *mongo.Database, collname string, dataverifikasi models.Verifikasi) (interface{}, error)

func IsPasswordValid

func IsPasswordValid(mconn *mongo.Database, collname string, userdata models.Users) bool

func SetConnection

func SetConnection(mongoenv, dbname string) *mongo.Database

func UpdateBerita

func UpdateBerita(mconn *mongo.Database, collname string, databerita models.Berita) interface{}

func UpdateKomentar

func UpdateKomentar(mconn *mongo.Database, collname string, datakomentar models.Komentar) interface{}

func UpdateUser

func UpdateUser(mconn *mongo.Database, collname string, datauser models.Users) interface{}

func UsernameExists

func UsernameExists(mconn *mongo.Database, collname string, userdata models.Users) bool

func VerifikasiExists added in v1.0.1

func VerifikasiExists(mconn *mongo.Database, collname string, dataverifikasi models.Verifikasi) bool

func VerifikasiUsernameExists added in v1.0.2

func VerifikasiUsernameExists(mconn *mongo.Database, collname string, dataverifikasi models.Verifikasi) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL