module

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSMessage added in v0.0.7

func CSMessage(Mongoenv, dbname string, r *http.Request) string

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

func CustomerService added in v0.0.7

func CustomerService(db *mongo.Database, col string, name, email, message string) (insertedID primitive.ObjectID, err error)

func DeleteOneDoc

func DeleteOneDoc(db *mongo.Database, col string, filter bson.M) (err error)

func DeleteUser added in v0.0.6

func DeleteUser(db *mongo.Database, col, username string) (err error)

func DeleteUsers added in v0.0.6

func DeleteUsers(Mongoenv, dbname string, r *http.Request) string

func GCFHandler

func GCFHandler(MONGOCONNSTRINGENV, dbname, collectionname string) string

func GCFInfoTransaksi added in v0.0.10

func GCFInfoTransaksi(Mongoenv, dbname string, r *http.Request) string

func GCFPostHandler

func GCFPostHandler(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFReturnStruct

func GCFReturnStruct(DataStuct any) string

func GetAllDocs

func GetAllDocs(db *mongo.Database, col string, docs interface{}) interface{}

func GetAllUser

func GetAllUser(db *mongo.Database, col string) (userlist []model.User)

func GetUserFromUsername

func GetUserFromUsername(db *mongo.Database, col string, username string) (user model.User)

func HashPassword

func HashPassword(password string) (string, error)

func InsertDataTransaksi added in v0.0.10

func InsertDataTransaksi(db *mongo.Database, col, email, infobeli, orderid, nohp string) (insertedID primitive.ObjectID, err error)

func InsertOneDoc

func InsertOneDoc(db *mongo.Database, col string, docs interface{}) (insertedID primitive.ObjectID, err error)

func InsertUser

func InsertUser(db *mongo.Database, col string, userdata model.User) (insertedID primitive.ObjectID, err error)

User

func IsPasswordValid

func IsPasswordValid(mongoconn *mongo.Database, collection string, userdata model.User) bool

func Register added in v0.0.5

func Register(Mongoenv, dbname string, r *http.Request) string

func ResetPassword added in v0.0.6

func ResetPassword(Mongoenv, dbname string, r *http.Request) string

func SetConnection

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

func UpdateOneDoc

func UpdateOneDoc(db *mongo.Database, col string, filter, update interface{}) (err error)

func UpdatePassword added in v0.0.6

func UpdatePassword(mongoconn *mongo.Database, user model.User) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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