module

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

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 DeleteDosenByID(_id primitive.ObjectID, db *mongo.Database, col string) error

func DeleteMahasiswaByID added in v0.0.9

func DeleteMahasiswaByID(_id primitive.ObjectID, db *mongo.Database, col string) error

func DeletePerwalianByID added in v0.0.7

func DeletePerwalianByID(_id primitive.ObjectID, db *mongo.Database, col string) error

func DeleteRuanganByID added in v0.0.9

func DeleteRuanganByID(_id primitive.ObjectID, db *mongo.Database, col string) error

func GetAllDosen added in v0.0.4

func GetAllDosen(db *mongo.Database, col string) (data []model.Dosen)

func GetAllLocation added in v0.0.4

func GetAllLocation(db *mongo.Database, col string) (data []model.Location)

func GetAllMahasiswa added in v0.0.4

func GetAllMahasiswa(db *mongo.Database, col string) (data []model.Mahasiswa)

func GetAllPerwalian added in v0.0.3

func GetAllPerwalian(db *mongo.Database, col string) (data []model.Perwalian)

func GetAllRuangan added in v0.0.4

func GetAllRuangan(db *mongo.Database, col string) (data []model.Ruangan)

func GetAllWaktu added in v0.0.4

func GetAllWaktu(db *mongo.Database, col string) (data []model.Waktu)

func GetDosenFromID added in v0.0.9

func GetDosenFromID(_id primitive.ObjectID, db *mongo.Database, col string) (dosenid model.Dosen, errs error)

func GetDosenFromJabatan

func GetDosenFromJabatan(db *mongo.Database, col string, jabatan string) (dsn model.Dosen)

func GetLocationFromAlamat

func GetLocationFromAlamat(db *mongo.Database, col string, alamat string) (loc model.Location)

func GetMahasiswaFromID added in v0.0.9

func GetMahasiswaFromID(_id primitive.ObjectID, db *mongo.Database, col string) (mahasiswaid model.Mahasiswa, errs error)

func GetMahasiswaFromNama

func GetMahasiswaFromNama(db *mongo.Database, col string, nama string) (mhs model.Mahasiswa)

func GetPerwalianFromID added in v0.0.7

func GetPerwalianFromID(_id primitive.ObjectID, db *mongo.Database, col string) (mahasiswa model.Perwalian, errs error)

func GetPerwalianFromLokasi added in v0.0.2

func GetPerwalianFromLokasi(db *mongo.Database, col string, lokasi string) (per model.Perwalian)

func GetRuanganFromID added in v0.0.9

func GetRuanganFromID(_id primitive.ObjectID, db *mongo.Database, col string) (ruanganid model.Ruangan, errs error)

func GetRuanganFromLokasi_ruangan

func GetRuanganFromLokasi_ruangan(db *mongo.Database, col string, lokasi_ruangan string) (rgn model.Ruangan)

func GetWaktuFromJam

func GetWaktuFromJam(db *mongo.Database, col string, jam string) (wkt model.Waktu)

func InsertDosen

func InsertDosen(db *mongo.Database, col string, nama string, jabatan string) (insertedID primitive.ObjectID, err error)

func InsertLocation

func InsertLocation(db *mongo.Database, col string, nama_lokasi string, alamat string) (insertedID primitive.ObjectID, err error)

func InsertMahasiswa

func InsertMahasiswa(db *mongo.Database, col string, nama string, phone_number string, jurusan string) (insertedID primitive.ObjectID, err error)

func InsertOneDoc

func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})

func InsertPerwalian

func InsertPerwalian(db *mongo.Database, col string, time model.Waktu, lokasi string, walidosen model.Dosen, biodata model.Mahasiswa) (insertedID primitive.ObjectID, err error)

func InsertRuangan

func InsertRuangan(db *mongo.Database, col string, lokasi_ruangan string) (insertedID primitive.ObjectID, err error)

func InsertWaktu

func InsertWaktu(db *mongo.Database, col string, jam string, hari string, tanggal string) (insertedID primitive.ObjectID, err error)

func UpdateDosen added in v0.0.9

func UpdateDosen(db *mongo.Database, col string, id primitive.ObjectID, nama string, jabatan string) (err error)

func UpdateMahasiswa added in v0.0.9

func UpdateMahasiswa(db *mongo.Database, col string, id primitive.ObjectID, nama string, phone_number string, jurusan string) (err error)

func UpdatePerwalian added in v0.0.7

func UpdatePerwalian(db *mongo.Database, col string, id primitive.ObjectID, time model.Waktu, lokasi string, walidosen model.Dosen, biodata model.Mahasiswa) (err error)

func UpdateRuangan added in v0.0.9

func UpdateRuangan(db *mongo.Database, col string, id primitive.ObjectID, lokasi_ruangan string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL