be_ats

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MongoInfo = atdb.DBInfo{
	DBString: MongoString,
	DBName:   "week4",
}
View Source
var MongoString string = os.Getenv("MONGOSTRING")

Functions

func GetAllJadwal

func GetAllJadwal() ([]interface{}, error)

GetAllJadwal berfungsi untuk mengambil semua jadwal dari koleksi MongoDB

func InsertJadwal

func InsertJadwal(hari string, waktuMulai string, waktuSelesai string, mataKuliah interface{}, ruangan int, dosen interface{}) interface{}

InsertJadwal berfungsi untuk menyisipkan jadwal ke dalam koleksi MongoDB

func InsertOneDoc

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

InsertOneDoc berfungsi untuk menyisipkan satu dokumen ke dalam koleksi MongoDB

func MongoConnect

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

MongoConnect berfungsi untuk terhubung ke database MongoDB

Types

This section is empty.

Jump to

Keyboard shortcuts

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