Documentation
¶
Index ¶
- Variables
- func InsertDosen(db string, dosen Dosen) (InsertedID interface{})
- func InsertJadwalKuliah(db string, jadwalkuliah JadwalKuliah) (InsertedID interface{})
- func InsertMahasiswa(db string, mahasiswa Mahasiswa) (InsertedID interface{})
- func InsertMataKuliah(db string, matakuliah MataKuliah) (InsertedID interface{})
- func InsertOneDoc(db string, collection string, doc interface{}) (insertedID interface{})
- func InsertPresensi(db string, presensi Presensi) (InsertedID interface{})
- func MongoConnect(dbname string) (db *mongo.Database)
- type Dosen
- type JadwalKuliah
- type Mahasiswa
- type MataKuliah
- type Presensi
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func InsertDosen ¶
func InsertJadwalKuliah ¶
func InsertJadwalKuliah(db string, jadwalkuliah JadwalKuliah) (InsertedID interface{})
func InsertMahasiswa ¶
func InsertMataKuliah ¶
func InsertMataKuliah(db string, matakuliah MataKuliah) (InsertedID interface{})
func InsertOneDoc ¶
func InsertPresensi ¶
func MongoConnect ¶
Types ¶
type JadwalKuliah ¶
type JadwalKuliah struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"id"` MataKuliah string `bson:"mata_kuliah" json:"mata_kuliah"` Hari string `bson:"hari" json:"hari"` JamMulai string `bson:"jam_mulai" json:"jam_mulai"` JamSelesai string `bson:"jam_selesai" json:"jam_selesai"` Ruangan string `bson:"ruangan" json:"ruangan"` }
type Mahasiswa ¶
type Mahasiswa struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"` Nama string `bson:"nama" json:"nama"` NPM string `bson:"npm" json:"npm"` Semester string `bson:"semester" json:"semester"` Kelas string `bson:"kelas" json:"kelas"` Prodi_kampus string `bson:"prodi_kampus" json:"prodi_kampus"` }
type MataKuliah ¶
Click to show internal directories.
Click to hide internal directories.