module

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func GetAllBap added in v0.0.5

func GetAllBap(db *mongo.Database, col string) (data []model.Bap)

func GetAllBapFromJudul

func GetAllBapFromJudul(judul string, db *mongo.Database, col string) (bap []model.Bap)

func GetBapFromJudul

func GetBapFromJudul(judul string, db *mongo.Database, col string) (bap model.Bap)

func GetDosenFromNama

func GetDosenFromNama(nama string, db *mongo.Database, col string) (dosen model.Dosen)

func GetJamSidangFromDurasi

func GetJamSidangFromDurasi(durasi int, db *mongo.Database, col string) (jamsidang model.JamSidang)

func GetMahasiswaFromNama

func GetMahasiswaFromNama(nama string, db *mongo.Database, col string) (mahasiswa model.Mahasiswa)

func GetPresensiFromCheckin

func GetPresensiFromCheckin(checkin string, db *mongo.Database, col string) (presensi model.Presensi)

func InsertBap

func InsertBap(db *mongo.Database, col string, judul string, nama_mahasiswa string, prodi string, hasil_revisi string, dosen string) (InsertedID interface{})

func InsertDosen

func InsertDosen(db *mongo.Database, col string, nama string, phone_number int, email string, jam_sidang string, hari_sidang string) (InsertID interface{})

func InsertJamSidang

func InsertJamSidang(db *mongo.Database, col string, durasi int, jam_masuk string, jam_keluar string, gmt int, hari string) (InsertedID interface{})

func InsertMahasiswa

func InsertMahasiswa(db *mongo.Database, col string, nama string, phone_number int, email string, jurusan string, jam_sidang string, hari_sidang string) (InsertID interface{})

func InsertOneDoc

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

func InsertPresensi

func InsertPresensi(db *mongo.Database, col string, long float64, lat float64, lokasi string, phonenumber int, checkin string, biodata model.Mahasiswa) (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