Documentation ¶
Index ¶
- Variables
- func InsertDosen(namadosen string, kodedosen string, matakuliah string) (InsertedID interface{})
- func InsertJadwalKuliah(hari string, jammulai string, jamselesai string, ruang string) (InsertedID interface{})
- func InsertKelas(ruang string, kapasitasmhs string) (InsertedID interface{})
- func InsertMahasiswa(namamhs string, kelas string, prodi string) (InsertedID interface{})
- func InsertMataKuliah(namamatakuliah string, kodematakuliah string, dosen string, sks string) (InsertedID interface{})
- func InsertOneDoc(db string, collection string, doc interface{}) (insertedID interface{})
- func MongoConnect(dbname string) (db *mongo.Database)
- type Dosenbel
- type Jadwalkuliahbel
- type Kelasbel
- type Mahasiswabel
- type Matakuliahbel
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func InsertDosen ¶
func InsertJadwalKuliah ¶
func InsertKelas ¶
func InsertMahasiswa ¶
func InsertMataKuliah ¶
func InsertOneDoc ¶
func MongoConnect ¶
Types ¶
type Dosenbel ¶ added in v0.0.8
type Dosenbel struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id"` NamaDosen string `bson:"namadosen" json:"namadosen"` KodeDosen string `bson:"kodedosen" json:"kodedosen"` Matakuliah string `bson:"matakuliah" json:"matakuliah"` }
func GetDataDosen ¶ added in v0.0.6
type Jadwalkuliahbel ¶ added in v0.0.8
type Jadwalkuliahbel struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id"` Hari string `bson:"hari" json:"hari"` JamMulai string `bson:"jammulai" json:"jammulai"` JamSelesai string `bson:"jamselesai" json:"jamselesai"` Ruang string `bson:"ruang" json:"ruang"` }
func GetDataJadwalkuliah ¶ added in v0.0.6
func GetDataJadwalkuliah(hari string) (data []Jadwalkuliahbel)
type Kelasbel ¶ added in v0.0.8
type Kelasbel struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id"` Ruang string `bson:"ruang" json:"ruang"` KapasitasMhs string `bson:"kapasitasmhs" json:"kapasitasmhs"` }
func GetDataKelas ¶ added in v0.0.6
type Mahasiswabel ¶ added in v0.0.8
type Mahasiswabel struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id"` NamaMhs string `bson:"namamhs" json:"namamhs"` Kelas string `bson:"kelas" json:"kelas"` Prodi string `bson:"prodi" json:"prodi"` }
func GetDataMahasiswa ¶ added in v0.0.6
func GetDataMahasiswa(namamhs string) (data []Mahasiswabel)
type Matakuliahbel ¶ added in v0.0.8
type Matakuliahbel struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id"` NamaMatakuliah string `bson:"namamatakuliah" json:"namamatakuliah"` KodeMatakuliah string `bson:"kodemtkuliah" json:"kodemtkuliah"` Dosen string `bson:"dosen" json:"dosen"` SKS string `bson:"sks" json:"sks"` }
func GetDataMatakuliah ¶ added in v0.0.6
func GetDataMatakuliah(kodematakuliah string) (data []Matakuliahbel)
Click to show internal directories.
Click to hide internal directories.