Versions in this module Expand all Collapse all v0 v0.0.1 Mar 8, 2023 Changes in this version + var MongoString string = os.Getenv("MONGOSTRING") + func InsertOneDoc(db string, collection string, doc interface{}) (insertedID interface{}) + func InsertPresensi(long float64, lat float64, lokasi string, phonenumber string, checkin string, ...) (InsertedID interface{}) + func MongoConnect(dbname string) (db *mongo.Database) + type Geometry struct + Coordinates interface{} + Type string + type JamKerja struct + Durasi int + Gmt int + Hari []string + Jam_keluar string + Jam_masuk string + Piket_tim string + Shift int + type Karyawan struct + Hari_kerja []string + ID primitive.ObjectID + Jabatan string + Jam_kerja []JamKerja + Nama string + Phone_number string + type Lokasi struct + Batas Geometry + ID primitive.ObjectID + Kategori string + Nama string + type Presensi struct + Biodata Karyawan + Checkin string + Datetime primitive.DateTime + ID primitive.ObjectID + Latitude float64 + Location string + Longitude float64 + Phone_number string + func GetKaryawanFromPhoneNumber(phone_number string) (staf Presensi)