Versions in this module Expand all Collapse all v0 v0.0.1 May 31, 2024 Changes in this version + var MongoConn = atdb.MongoConnect(MongoInfo) + var MongoInfo = atdb.DBInfo + var MongoString string = os.Getenv("MONGOSTRCONNECT") + func GetAllPresensi(db *mongo.Database, col string) (data []model.Presensi) + func GetKaryawanFromPhoneNumber(phone_number string, db *mongo.Database, col string) (staf model.Presensi, errs error) + func GetPresensiFromID(_id primitive.ObjectID, db *mongo.Database, col string) (presensi model.Presensi, errs error) + func InsertOneDoc(db string, collection string, doc interface{}) (insertedID interface{}) + func InsertPresensi(db *mongo.Database, col string, long float64, lat float64, lokasi string, ...) (insertedID primitive.ObjectID, err error) + func MongoConnect(dbname string) (db *mongo.Database)