Documentation ¶
Index ¶
- Variables
- func GetAllTagihan(db *mongo.Database, col string) (bank model.Bank)
- func GetAllTagihanFromNama_nasabah(nama_nasabah string, db *mongo.Database, col string) (tagihan []model.Tagihan)
- func GetBankFromDaftar(nama_penagih string, col string, db *mongo.Database) (bank model.Bank)
- func GetNasabahFromNama(nama_nasabah string, col string, db *mongo.Database) (nasabah model.Nasabah)
- func GetPenagihFromNama(nama_penagih string, col string, db *mongo.Database) (penagih model.Penagih)
- func GetTagihanFromNama_nasabah(nama_nasabah string, col string, db *mongo.Database) (tagihan model.Tagihan)
- func InsertBank(db *mongo.Database, col string, nama_bank string, lokasi string, ...) (InsertedID interface{})
- func InsertNasabah(db *mongo.Database, col string, nama_nasabah string, email string, ...) (InsertedID interface{})
- func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})
- func InsertPenagih(db *mongo.Database, col string, nama_penagih string, email string, ...) (InsertedID interface{})
- func InsertTagihan(db *mongo.Database, col string, total_tagihan string, deskripsi string, ...) (InsertedID interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoConn = atdb.MongoConnect(MongoInfo)
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
GET ALL
func GetAllTagihanFromNama_nasabah ¶ added in v0.0.4
func GetBankFromDaftar ¶
func GetNasabahFromNama ¶
func GetPenagihFromNama ¶
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 InsertPenagih ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.