Documentation ¶
Index ¶
- Variables
- func InsertAbsensi(nip string, date string, status string, employee string, positions string) (InsertedID interface{})
- func InsertOneDoc(db string, collection string, doc interface{}) (insertedID interface{})
- func InsertPosisi(nama_posisi string, bidang string) (InsertedID interface{})
- func MongoConnect(dbname string) (db *mongo.Database)
- type Absensi
- type Posisi
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func InsertAbsensi ¶
func InsertOneDoc ¶
func InsertPosisi ¶
func MongoConnect ¶
Types ¶
type Absensi ¶
type Absensi struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` NIP string `bson:"nip,omitempty" json:"nip,omitempty"` Date string `bson:"date,omitempty" json:"date,omitempty"` Status string `bson:"status,omitempty" json:"status,omitempty"` Employee string `bson:"employee,omitempty" json:"employee,omitempty"` Positions string `bson:"positions,omitempty" json:"positions,omitempty"` }
func GetDataAbsensi ¶
Click to show internal directories.
Click to hide internal directories.