module

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func GetAllCamaba added in v0.0.6

func GetAllCamaba(db *mongo.Database, col string) (camaba []model.Camaba)

func GetAllJurusan added in v0.0.6

func GetAllJurusan(db *mongo.Database, col string) (jurusan []model.Jurusan)

func GetAllPendaftaran added in v0.0.6

func GetAllPendaftaran(db *mongo.Database, col string) (pendaftaran []model.Pendaftaran)

func GetAllSekolah added in v0.0.6

func GetAllSekolah(db *mongo.Database, col string) (sekolah []model.DaftarSekolah)

func GetCamabaFromID added in v0.1.0

func GetCamabaFromID(_id primitive.ObjectID, db *mongo.Database, col string) (staf model.Camaba, errs error)

camabaFromID

func GetCamabaFromPhoneNumber

func GetCamabaFromPhoneNumber(phone_number string, db *mongo.Database, col string) (camaba model.Camaba)

func GetDaftarSekolahFromKDSekolah

func GetDaftarSekolahFromKDSekolah(kdsekolah int, db *mongo.Database, col string) (dfsekolah model.DaftarSekolah)

func GetJurusanFromID added in v0.1.0

func GetJurusanFromID(_id primitive.ObjectID, db *mongo.Database, col string) (staf model.Jurusan, errs error)

JurusanFromId

func GetJurusanFromKDJurusan

func GetJurusanFromKDJurusan(kdjurusan string, db *mongo.Database, col string) (dfjurusan model.Jurusan)

func GetPendaftaranFromID added in v0.0.7

func GetPendaftaranFromID(_id primitive.ObjectID, db *mongo.Database, col string) (staf model.Pendaftaran, errs error)

GetAllFromId PendaftaranFromId

func GetPendaftaranFromKTP

func GetPendaftaranFromKTP(ktp int, db *mongo.Database, col string) (pendaftaran model.Pendaftaran)

func GetSekolahFromID added in v0.1.0

func GetSekolahFromID(_id primitive.ObjectID, db *mongo.Database, col string) (staf model.DaftarSekolah, errs error)

SekolahFromID

func InsertDaftarCamaba

func InsertDaftarCamaba(db *mongo.Database, col string, ktp int, nama string, phone_number string, alamat string) (InsertedID interface{})

func InsertDaftarJurusan

func InsertDaftarJurusan(db *mongo.Database, col string, kodejurusan string, nama string, jenjang string) (InsertedID interface{})

func InsertDaftarSekolah

func InsertDaftarSekolah(db *mongo.Database, col string, kodesklh int, nama string, phone_number string, alamat string) (InsertedID interface{})

func InsertOneDoc

func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})

func InsertPendaftaran

func InsertPendaftaran(db *mongo.Database, col string, kdpendaftar int, biodata model.Camaba, asalsekolah model.DaftarSekolah, jurusan model.Jurusan, jalur string, alulbi string, aljurusan string) (InsertedID interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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