Documentation ¶
Index ¶
- Variables
- func GetAllAnggotaPerpustakaan() (data []model.AnggotaPerpustakaan)
- func GetAllJamBuka() (data []model.JamBuka)
- func GetAllPeminjaman(db *mongo.Database, col string) (data []model.AnggotaPerpustakaan, jam []model.JamBuka, ...)
- func GetAllPeminjamanBuku() (data []model.PeminjamanBuku)
- func GetAnggotaPerpustakaanByID(_id primitive.ObjectID, db *mongo.Database, col string) (anggota model.AnggotaPerpustakaan, errs error)
- func InsertAnggotaPerpustakaan(nama string, alamat string, noTelp string, membershipID string, ...) (insertedID interface{})
- func InsertJamBuka(hari string, jamMulai string, jamSelesai string) (insertedID interface{})
- func InsertOneDoc(db string, collection string, doc interface{}) (insertedID interface{})
- func InsertPeminjamanBuku(anggotaID primitive.ObjectID, bukuID primitive.ObjectID, ...) (insertedID interface{})
- func MongoConnect(dbname string) (db *mongo.Database)
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoConn = atdb.MongoConnect(MongoInfo)
View Source
var MongoInfo = atdb.DBInfo{ DBString: MongoString, DBName: "UTS2024", }
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func GetAllAnggotaPerpustakaan ¶
func GetAllAnggotaPerpustakaan() (data []model.AnggotaPerpustakaan)
func GetAllJamBuka ¶
func GetAllPeminjaman ¶
func GetAllPeminjaman(db *mongo.Database, col string) (data []model.AnggotaPerpustakaan, jam []model.JamBuka, peminjaman []model.PeminjamanBuku)
func GetAllPeminjamanBuku ¶
func GetAllPeminjamanBuku() (data []model.PeminjamanBuku)
func InsertJamBuka ¶
func InsertOneDoc ¶
func InsertPeminjamanBuku ¶
func MongoConnect ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.