Documentation ¶
Index ¶
- Variables
- func InsertDosen(nama_dosen string, npm string) (InsertedID interface{})
- func InsertJam_matkul(id_matkul string, jam_masuk string, jam_keluar string) (InsertedID interface{})
- func InsertMahasiswa(nama string, phone_number string, prodi string, kelas string) (InsertedID interface{})
- func InsertMatakuliah(nama_matkul string, id_dosen string) (InsertedID interface{})
- func InsertOneDoc(db string, collection string, doc interface{}) (insertedID interface{})
- func InsertPresensi(checkin string, id_mhs string) (InsertedID interface{})
- func MongoConnect(dbname string) (db *mongo.Database)
- type Dosen
- type Jam_matkul
- type Mahasiswa
- type Matakuliah
- type Presensi
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func InsertDosen ¶
func InsertJam_matkul ¶
func InsertMahasiswa ¶
func InsertMatakuliah ¶
func InsertOneDoc ¶
func InsertPresensi ¶
func MongoConnect ¶
Types ¶
type Jam_matkul ¶
type Jam_matkul struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` ID_matkul string `bson:"ID_matkul,omitempty" json:"ID_matkul,omitempty"` Jam_masuk string `bson:"Jam_masuk,omitempty" json:"Jam_masuk,omitempty"` Jam_keluar string `bson:"Jam_keluar,omitempty" json:"Jam_keluar,omitempty"` }
type Mahasiswa ¶
type Mahasiswa struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` Nama string `bson:"nama,omitempty" json:"nama,omitempty"` Phone_number string `bson:"phone_number,omitempty" json:"phone_number,omitempty"` Prodi string `bson:"Prodi,omitempty" json:"Prodi,omitempty"` Kelas string `bson:"Kelas,omitempty" json:"Kelas,omitempty"` }
func GetMahasiswaFromPhone ¶
type Matakuliah ¶
type Presensi ¶
type Presensi struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` Datetime primitive.DateTime `bson:"datetime,omitempty" json:"datetime,omitempty"` Checkin string `bson:"checkin,omitempty" json:"checkin,omitempty"` ID_mhs string `bson:"ID_mhs,omitempty" json:"ID_mhs,omitempty"` }
Click to show internal directories.
Click to hide internal directories.