module

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 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 DeletePerwalianByID added in v0.0.7

func DeletePerwalianByID(_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 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 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 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 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)

Types

This section is empty.

Jump to

Keyboard shortcuts

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