Documentation ¶
Index ¶
- Variables
- func DeleteDosenByID(_id primitive.ObjectID, db *mongo.Database, col string) error
- func DeleteMahasiswaByID(_id primitive.ObjectID, db *mongo.Database, col string) error
- func DeletePerwalianByID(_id primitive.ObjectID, db *mongo.Database, col string) error
- func DeleteRuanganByID(_id primitive.ObjectID, db *mongo.Database, col string) error
- func GetAllDosen(db *mongo.Database, col string) (data []model.Dosen)
- func GetAllLocation(db *mongo.Database, col string) (data []model.Location)
- func GetAllMahasiswa(db *mongo.Database, col string) (data []model.Mahasiswa)
- func GetAllPerwalian(db *mongo.Database, col string) (data []model.Perwalian)
- func GetAllRuangan(db *mongo.Database, col string) (data []model.Ruangan)
- func GetAllWaktu(db *mongo.Database, col string) (data []model.Waktu)
- func GetDosenFromID(_id primitive.ObjectID, db *mongo.Database, col string) (dosenid model.Dosen, errs error)
- func GetDosenFromJabatan(db *mongo.Database, col string, jabatan string) (dsn model.Dosen)
- func GetLocationFromAlamat(db *mongo.Database, col string, alamat string) (loc model.Location)
- func GetMahasiswaFromID(_id primitive.ObjectID, db *mongo.Database, col string) (mahasiswaid model.Mahasiswa, errs error)
- func GetMahasiswaFromNama(db *mongo.Database, col string, nama string) (mhs model.Mahasiswa)
- func GetPerwalianFromID(_id primitive.ObjectID, db *mongo.Database, col string) (mahasiswa model.Perwalian, errs error)
- func GetPerwalianFromLokasi(db *mongo.Database, col string, lokasi string) (per model.Perwalian)
- func GetRuanganFromID(_id primitive.ObjectID, db *mongo.Database, col string) (ruanganid model.Ruangan, errs error)
- func GetRuanganFromLokasi_ruangan(db *mongo.Database, col string, lokasi_ruangan string) (rgn model.Ruangan)
- func GetWaktuFromJam(db *mongo.Database, col string, jam string) (wkt model.Waktu)
- func InsertDosen(db *mongo.Database, col string, nama string, jabatan string) (insertedID primitive.ObjectID, err error)
- func InsertLocation(db *mongo.Database, col string, nama_lokasi string, alamat string) (insertedID primitive.ObjectID, err error)
- func InsertMahasiswa(db *mongo.Database, col string, nama string, phone_number string, ...) (insertedID primitive.ObjectID, err error)
- func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})
- func InsertPerwalian(db *mongo.Database, col string, time model.Waktu, lokasi string, ...) (insertedID primitive.ObjectID, err error)
- func InsertRuangan(db *mongo.Database, col string, lokasi_ruangan string) (insertedID primitive.ObjectID, err error)
- func InsertWaktu(db *mongo.Database, col string, jam string, hari string, tanggal string) (insertedID primitive.ObjectID, err error)
- func UpdateDosen(db *mongo.Database, col string, id primitive.ObjectID, nama string, ...) (err error)
- func UpdateMahasiswa(db *mongo.Database, col string, id primitive.ObjectID, nama string, ...) (err error)
- func UpdatePerwalian(db *mongo.Database, col string, id primitive.ObjectID, time model.Waktu, ...) (err error)
- func UpdateRuangan(db *mongo.Database, col string, id primitive.ObjectID, lokasi_ruangan string) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoConn = atdb.MongoConnect(MongoInfo)
View Source
var MongoInfo = atdb.DBInfo{ DBString: MongoString, DBName: "perwalian_db", }
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func DeleteDosenByID ¶ added in v0.0.9
func DeleteMahasiswaByID ¶ added in v0.0.9
func DeletePerwalianByID ¶ added in v0.0.7
func DeleteRuanganByID ¶ added in v0.0.9
func GetAllDosen ¶ added in v0.0.4
func GetAllLocation ¶ added in v0.0.4
func GetAllMahasiswa ¶ added in v0.0.4
func GetAllPerwalian ¶ added in v0.0.3
func GetAllRuangan ¶ added in v0.0.4
func GetAllWaktu ¶ added in v0.0.4
func GetDosenFromID ¶ added in v0.0.9
func GetDosenFromJabatan ¶
func GetLocationFromAlamat ¶
func GetMahasiswaFromID ¶ added in v0.0.9
func GetMahasiswaFromNama ¶
func GetPerwalianFromID ¶ added in v0.0.7
func GetPerwalianFromLokasi ¶ added in v0.0.2
func GetRuanganFromID ¶ added in v0.0.9
func GetWaktuFromJam ¶
func InsertDosen ¶
func InsertLocation ¶
func InsertMahasiswa ¶
func InsertOneDoc ¶
func InsertPerwalian ¶
func InsertRuangan ¶
func InsertWaktu ¶
func UpdateDosen ¶ added in v0.0.9
func UpdateMahasiswa ¶ added in v0.0.9
func UpdatePerwalian ¶ added in v0.0.7
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.