module

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 9 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 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 GetJurusanFromKDJurusan

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

func GetPendaftaranFromKTP

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

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