Documentation ¶
Index ¶
- Variables
- func GetAllUang(db *mongo.Database, col string) (data []model.Uang)
- func GetGajiFromNamaKaryawan(nama string, db *mongo.Database, col string) (staf model.Uang)
- func GetGajiFromPresensi(phone_number string, db *mongo.Database, col string) (masuk model.Uang)
- func GetKaryawanFromNama(nama string, db *mongo.Database, col string) (masuk model.Karyawan)
- func GetPresensiFromWaktu(tanggal string, db *mongo.Database, col string) (kehadiran model.Presensi)
- func InsertBendahara(db *mongo.Database, col string, nama string, email string, phone_number string, ...) (InsertedID interface{})
- func InsertJamker(db *mongo.Database, col string, jam_masuk string, jam_keluar string, ...) (InsertedID interface{})
- func InsertKaryawan(db *mongo.Database, col string, nama string, phone_number string, ...) (InsertedID interface{})
- func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})
- func InsertPimpinan(db *mongo.Database, col string, nama string, phone_number string, ...) (InsertedID interface{})
- func InsertPresensi(db *mongo.Database, col string, location string, phone_number string, ...) (InsertedID interface{})
- func InsertUang(db *mongo.Database, col string, tanggal string, gaji_pokok string, ...) (InsertedID interface{})
- func InsertWaktu(db *mongo.Database, col string, hari string, jam string, tanggal 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: "Penggajian_db", }
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func GetAllUang ¶ added in v0.0.7
func GetGajiFromNamaKaryawan ¶
func GetGajiFromPresensi ¶ added in v0.0.6
func GetKaryawanFromNama ¶ added in v0.0.2
func GetPresensiFromWaktu ¶ added in v0.0.2
func InsertBendahara ¶
func InsertJamker ¶
func InsertKaryawan ¶
func InsertOneDoc ¶
func InsertPimpinan ¶
func InsertPresensi ¶
func InsertUang ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.