module

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func GetDosenFromJabatan

func GetDosenFromJabatan(db *mongo.Database, col string, jabatan string) (dsn model.Dosen)

func GetLocationFromAlamat

func GetLocationFromAlamat(db *mongo.Database, col string, alamat string) (loc model.Location)

func GetMahasiswaFromNama

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

func GetPerwalianFromLokasi added in v0.0.2

func GetPerwalianFromLokasi(db *mongo.Database, col string, lokasi string) (per model.Perwalian)

func GetRuanganFromLokasi_ruangan

func GetRuanganFromLokasi_ruangan(db *mongo.Database, col string, lokasi_ruangan string) (rgn model.Ruangan)

func GetWaktuFromJam

func GetWaktuFromJam(db *mongo.Database, col string, jam string) (wkt model.Waktu)

func InsertDosen

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

func InsertLocation

func InsertLocation(db *mongo.Database, col string, nama_lokasi string, alamat string) (InsertedID interface{})

func InsertMahasiswa

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

func InsertOneDoc

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

func InsertPerwalian

func InsertPerwalian(db *mongo.Database, col string, time model.Waktu, lokasi string, walidosen model.Dosen, biodata model.Mahasiswa) (InsertedID interface{})

func InsertRuangan

func InsertRuangan(db *mongo.Database, col string, lokasi_ruangan string) (InsertedID interface{})

func InsertWaktu

func InsertWaktu(db *mongo.Database, col string, jam string, hari string, tanggal string) (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