module

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MongoInfo = atdb.DBInfo{
	DBString: MongoString,
	DBName:   "tugas5_db",
}
View Source
var MongoString string = os.Getenv("MONGOSTRING")

Functions

func GetAllPresensi

func GetAllPresensi(db *mongo.Database, col string) (data []model.Presensi)

func GetAllPresensiFromPeneliti

func GetAllPresensiFromPeneliti(checkin string, db *mongo.Database, col string) (data []model.Presensi)

func GetHasilTelitiFromNama

func GetHasilTelitiFromNama(nama string, db *mongo.Database, col string) (objek_teliti model.HasilTeliti)

func GetPenelitiFromJabatan

func GetPenelitiFromJabatan(jabatan string, db *mongo.Database, col string) (staf model.Peneliti)

func GetPenelitiFromPhoneNumber

func GetPenelitiFromPhoneNumber(phone_number string, db *mongo.Database, col string) (staf model.Presensi)

func GetPresensiFromPhoneNumber

func GetPresensiFromPhoneNumber(phone_number string, db *mongo.Database, col string) (absen model.Presensi)

func GetaLabFromKategori

func GetaLabFromKategori(kategori string, db *mongo.Database, col string) (gedung model.Lab)

func InsertHasilTeliti

func InsertHasilTeliti(db *mongo.Database, col string, nama string) (InsertedID interface{})

func InsertJadwal

func InsertJadwal(db *mongo.Database, col string, durasi string, jam_masuk string, jam_keluar string, hari []string) (InsertedID interface{})

func InsertLab

func InsertLab(db *mongo.Database, col string, nama string, kategori string) (InsertedID interface{})

func InsertOneDoc

func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})

func InsertPeneliti

func InsertPeneliti(db *mongo.Database, col string, nama string, phone_number string, jabatan string, jadwalpenelitian string) (InsertedID interface{})

func InsertPresensi

func InsertPresensi(db *mongo.Database, col string, location string, phone_number string, checkin string, biodata model.Peneliti) (InsertedID interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL