bella

package module
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MongoString string = os.Getenv("MONGOSTRING")

Functions

func InsertDosen

func InsertDosen(namadosen string, kodedosen string, matakuliah string) (InsertedID interface{})

func InsertJadwalKuliah

func InsertJadwalKuliah(hari string, jammulai string, jamselesai string, ruang string) (InsertedID interface{})

func InsertKelas

func InsertKelas(ruang string, kapasitasmhs string) (InsertedID interface{})

func InsertMahasiswa

func InsertMahasiswa(namamhs string, kelas string, prodi string) (InsertedID interface{})

func InsertMataKuliah

func InsertMataKuliah(namamatakuliah string, kodematakuliah string, dosen string, sks string) (InsertedID interface{})

func InsertOneDoc

func InsertOneDoc(db string, collection string, doc interface{}) (insertedID interface{})

func MongoConnect

func MongoConnect(dbname string) (db *mongo.Database)

Types

type Dosenbel added in v0.0.8

type Dosenbel struct {
	ID         primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
	NamaDosen  string             `bson:"namadosen" json:"namadosen"`
	KodeDosen  string             `bson:"kodedosen" json:"kodedosen"`
	Matakuliah string             `bson:"matakuliah" json:"matakuliah"`
}

func GetDataDosen added in v0.0.6

func GetDataDosen(namadosen string) (data []Dosenbel)

type Jadwalkuliahbel added in v0.0.8

type Jadwalkuliahbel struct {
	ID         primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
	Hari       string             `bson:"hari" json:"hari"`
	JamMulai   string             `bson:"jammulai" json:"jammulai"`
	JamSelesai string             `bson:"jamselesai" json:"jamselesai"`
	Ruang      string             `bson:"ruang" json:"ruang"`
}

func GetDataJadwalkuliah added in v0.0.6

func GetDataJadwalkuliah(hari string) (data []Jadwalkuliahbel)

type Kelasbel added in v0.0.8

type Kelasbel struct {
	ID           primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
	Ruang        string             `bson:"ruang" json:"ruang"`
	KapasitasMhs string             `bson:"kapasitasmhs" json:"kapasitasmhs"`
}

func GetDataKelas added in v0.0.6

func GetDataKelas(ruang string) (data []Kelasbel)

type Mahasiswabel added in v0.0.8

type Mahasiswabel struct {
	ID      primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
	NamaMhs string             `bson:"namamhs" json:"namamhs"`
	Kelas   string             `bson:"kelas" json:"kelas"`
	Prodi   string             `bson:"prodi" json:"prodi"`
}

func GetDataMahasiswa added in v0.0.6

func GetDataMahasiswa(namamhs string) (data []Mahasiswabel)

type Matakuliahbel added in v0.0.8

type Matakuliahbel struct {
	ID             primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
	NamaMatakuliah string             `bson:"namamatakuliah" json:"namamatakuliah"`
	KodeMatakuliah string             `bson:"kodemtkuliah" json:"kodemtkuliah"`
	Dosen          string             `bson:"dosen" json:"dosen"`
	SKS            string             `bson:"sks" json:"sks"`
}

func GetDataMatakuliah added in v0.0.6

func GetDataMatakuliah(kodematakuliah string) (data []Matakuliahbel)

Jump to

Keyboard shortcuts

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