Documentation ¶
Index ¶
- Variables
- func GetAllBank(db *mongo.Database, col string) (bank []model.Bank)
- func GetAllTagihanFromNama_nasabah(nama_nasabah string, db *mongo.Database, col string) (tagihan []model.Tagihan)
- func GetBankFromNama_bank(nama_bank 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: "be_tagihan", }
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func GetAllBank ¶ added in v0.0.2
GET ALL
func GetBankFromNama_bank ¶
func GetNasabahFromNama ¶
func GetPenagihFromNama ¶
func InsertBank ¶
func InsertBank(db *mongo.Database, col string, nama_bank string, lokasi string, daftar model.Penagih) (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.