module

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MongoInfo = atdb.DBInfo{
	DBString: MongoString,
	DBName:   "tagihan_db",
}
View Source
var MongoString string = os.Getenv("MONGOSTRING")

Functions

func GetAllTagihan added in v0.0.6

func GetAllTagihan(db *mongo.Database, col string) (bank model.Bank)

GET ALL

func GetAllTagihanFromNama_nasabah added in v0.0.4

func GetAllTagihanFromNama_nasabah(nama_nasabah string, db *mongo.Database, col string) (tagihan []model.Tagihan)

func GetBankFromDaftar

func GetBankFromDaftar(nama_penagih string, col string, db *mongo.Database) (bank model.Bank)

func GetNasabahFromNama

func GetNasabahFromNama(nama_nasabah string, col string, db *mongo.Database) (nasabah model.Nasabah)

func GetPenagihFromNama

func GetPenagihFromNama(nama_penagih string, col string, db *mongo.Database) (penagih model.Penagih)

func GetTagihanFromNama_nasabah

func GetTagihanFromNama_nasabah(nama_nasabah string, col string, db *mongo.Database) (tagihan model.Tagihan)

func InsertBank

func InsertBank(db *mongo.Database, col string, nama_bank string, lokasi string, total_tagihan []model.Tagihan, daftar []model.Penagih, biodata []model.Nasabah) (InsertedID interface{})

BANK

func InsertNasabah

func InsertNasabah(db *mongo.Database, col string, nama_nasabah string, email string, phone_number string, alamat string) (InsertedID interface{})

NASABAH

func InsertOneDoc

func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})

func InsertPenagih

func InsertPenagih(db *mongo.Database, col string, nama_penagih string, email string, phone_number string, total_tagihan model.Tagihan) (InsertedID interface{})

func InsertTagihan

func InsertTagihan(db *mongo.Database, col string, total_tagihan string, deskripsi string, status string, tanggal_jatuhtempo string, biodata model.Nasabah, location string, longitude float64, latitude float64) (InsertedID interface{})

TAGIHAN

Types

This section is empty.

Jump to

Keyboard shortcuts

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