Documentation ¶
Index ¶
- Variables
- 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 GetDosenFromJabatan(db *mongo.Database, col string, jabatan string) (dsn model.Dosen)
- func GetLocationFromAlamat(db *mongo.Database, col string, alamat string) (loc model.Location)
- func GetMahasiswaFromNama(db *mongo.Database, col string, nama string) (mhs model.Mahasiswa)
- func GetPerwalianFromLokasi(db *mongo.Database, col string, lokasi string) (per model.Perwalian)
- 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 interface{})
- func InsertLocation(db *mongo.Database, col string, nama_lokasi string, alamat string) (InsertedID interface{})
- func InsertMahasiswa(db *mongo.Database, col string, nama string, phone_number string, ...) (InsertedID interface{})
- func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})
- func InsertPerwalian(db *mongo.Database, col string, time model.Waktu, lokasi string, ...) (InsertedID interface{})
- func InsertRuangan(db *mongo.Database, col string, lokasi_ruangan string) (InsertedID interface{})
- func InsertWaktu(db *mongo.Database, col string, jam string, hari string, tanggal string) (InsertedID interface{})
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 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 GetDosenFromJabatan ¶
func GetLocationFromAlamat ¶
func GetMahasiswaFromNama ¶
func GetPerwalianFromLokasi ¶ added in v0.0.2
func GetWaktuFromJam ¶
func InsertDosen ¶
func InsertLocation ¶
func InsertMahasiswa ¶
func InsertOneDoc ¶
func InsertPerwalian ¶
func InsertRuangan ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.