Documentation ¶
Index ¶
- Variables
- func DeletePresensiByID(_id primitive.ObjectID, db *mongo.Database, col string) error
- 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)
- func UpdatePresensi(db *mongo.Database, col string, id primitive.ObjectID, long float64, ...) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoConn = atdb.MongoConnect(MongoInfo)
View Source
var MongoInfo = atdb.DBInfo{ DBString: MongoString, DBName: "tesdb2024", }
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func DeletePresensiByID ¶
func GetPresensiFromID ¶
func InsertOneDoc ¶
func InsertPresensi ¶
func MongoConnect ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.