Documentation
¶
Index ¶
- Variables
- func GetAllCamaba(db *mongo.Database, col string) (camaba []model.Camaba)
- func GetAllJurusan(db *mongo.Database, col string) (jurusan []model.Jurusan)
- func GetAllPendaftaran(db *mongo.Database, col string) (pendaftaran []model.Pendaftaran)
- func GetAllSekolah(db *mongo.Database, col string) (sekolah []model.DaftarSekolah)
- func GetCamabaFromID(_id primitive.ObjectID, db *mongo.Database, col string) (staf model.Camaba, errs error)
- func GetCamabaFromPhoneNumber(phone_number string, db *mongo.Database, col string) (camaba model.Camaba)
- func GetDaftarSekolahFromKDSekolah(kdsekolah int, db *mongo.Database, col string) (dfsekolah model.DaftarSekolah)
- func GetJurusanFromID(_id primitive.ObjectID, db *mongo.Database, col string) (staf model.Jurusan, errs error)
- func GetJurusanFromKDJurusan(kdjurusan string, db *mongo.Database, col string) (dfjurusan model.Jurusan)
- func GetPendaftaranFromID(_id primitive.ObjectID, db *mongo.Database, col string) (staf model.Pendaftaran, errs error)
- func GetPendaftaranFromKTP(ktp int, db *mongo.Database, col string) (pendaftaran model.Pendaftaran)
- func GetSekolahFromID(_id primitive.ObjectID, db *mongo.Database, col string) (staf model.DaftarSekolah, errs error)
- func InsertDaftarCamaba(db *mongo.Database, col string, ktp int, nama string, phone_number string, ...) (InsertedID interface{})
- func InsertDaftarJurusan(db *mongo.Database, col string, kodejurusan string, nama string, ...) (InsertedID interface{})
- func InsertDaftarSekolah(db *mongo.Database, col string, kodesklh int, nama string, phone_number string, ...) (InsertedID interface{})
- func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})
- func InsertPendaftaran(db *mongo.Database, col string, kdpendaftar int, biodata model.Camaba, ...) (InsertedID interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoConn = atdb.MongoConnect(MongoInfo)
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 GetAllJurusan ¶ added in v0.0.6
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 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 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 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 InsertDaftarJurusan ¶
func InsertDaftarSekolah ¶
func InsertOneDoc ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.