kibackend

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: MIT Imports: 7 Imported by: 0

README

kibackend

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func InsertDosen

func InsertDosen(db string, dosen Dosen) (InsertedID interface{})

func InsertJadwalKuliah

func InsertJadwalKuliah(db string, jadwalkuliah JadwalKuliah) (InsertedID interface{})

func InsertMahasiswa

func InsertMahasiswa(db string, mahasiswa Mahasiswa) (InsertedID interface{})

func InsertMataKuliah

func InsertMataKuliah(db string, matakuliah MataKuliah) (InsertedID interface{})

func InsertOneDoc

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

func InsertPresensi

func InsertPresensi(db string, presensi Presensi) (InsertedID interface{})

func MongoConnect

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

Types

type Dosen

type Dosen struct {
	ID         primitive.ObjectID `bson:"_id,omitempty" json:"id"`
	NIDN       string             `bson:"nidn" json:"nidn"`
	Nama       string             `bson:"nama" json:"nama"`
	MataKuliah string             `bson:"mata_kuliah" json:"mata_kuliah"`
}

func GetDataDosen added in v0.0.3

func GetDataDosen(stats string) (data []Dosen)

type JadwalKuliah

type JadwalKuliah struct {
	ID         primitive.ObjectID `bson:"_id,omitempty" json:"id"`
	MataKuliah string             `bson:"mata_kuliah" json:"mata_kuliah"`
	Hari       string             `bson:"hari" json:"hari"`
	JamMulai   string             `bson:"jam_mulai" json:"jam_mulai"`
	JamSelesai string             `bson:"jam_selesai" json:"jam_selesai"`
	Ruangan    string             `bson:"ruangan" json:"ruangan"`
}

func GetDataJadwalKuliah added in v0.0.3

func GetDataJadwalKuliah(stats string) (data []JadwalKuliah)

type Mahasiswa

type Mahasiswa struct {
	ID           primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	Nama         string             `bson:"nama" json:"nama"`
	NPM          string             `bson:"npm" json:"npm"`
	Semester     string             `bson:"semester" json:"semester"`
	Kelas        string             `bson:"kelas" json:"kelas"`
	Prodi_kampus string             `bson:"prodi_kampus" json:"prodi_kampus"`
}

func GetDataMahasiswa added in v0.0.3

func GetDataMahasiswa(stats string) (data []Mahasiswa)

type MataKuliah

type MataKuliah struct {
	ID      primitive.ObjectID `bson:"_id,omitempty" json:"id"`
	KodeMK  string             `bson:"kode_mk" json:"kode_mk"`
	NamaMK  string             `bson:"nama_mk" json:"nama_mk"`
	SKS     string             `bson:"sks" json:"sks"`
	Jurusan string             `bson:"jurusan" json:"jurusan"`
}

func GetDataMataKuliah added in v0.0.3

func GetDataMataKuliah(stats string) (data []MataKuliah)

type Presensi

type Presensi struct {
	ID         primitive.ObjectID `bson:"_id,omitempty" json:"id"`
	Datetime   primitive.DateTime `bson:"tanggal" json:"tanggal"`
	Kehadiran  string             `bson:"kehadiran" json:"kehadiran"`
	Keterangan string             `bson:"keterangan,omitempty" json:"keterangan,omitempty"`
}

func GetDataPresensi added in v0.0.3

func GetDataPresensi(stats string) (data []Presensi)

Jump to

Keyboard shortcuts

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