Documentation ¶
Index ¶
- Variables
- func DeleteAntrianByID(_id primitive.ObjectID, db *mongo.Database, col string) error
- func DeleteDokterByID(_id primitive.ObjectID, db *mongo.Database, col string) error
- func DeletePasienByID(_id primitive.ObjectID, db *mongo.Database, col string) error
- func DeletePoliklinikByID(_id primitive.ObjectID, db *mongo.Database, col string) error
- func DeleteUserByID(_id primitive.ObjectID, db *mongo.Database, col string) error
- func GetAllAntrian(db *mongo.Database, col string) (data []model.Antrian)
- func GetAllDokter(db *mongo.Database, col string) (data []model.Dokter)
- func GetAllPasien(db *mongo.Database, col string) (data []model.Pasien)
- func GetAllPoliklinik(db *mongo.Database, col string) (data []model.Poliklinik)
- func GetAllUser(db *mongo.Database, col string) (data []model.User)
- func GetAntrianFromID(_id primitive.ObjectID, db *mongo.Database, col string) (data model.Antrian, errs error)
- func GetAntrianTerakhir(db *mongo.Database) (int, error)
- func GetDokterFromID(_id primitive.ObjectID, db *mongo.Database, col string) (data model.Dokter, errs error)
- func GetPasienFromID(_id primitive.ObjectID, db *mongo.Database, col string) (data model.Pasien, errs error)
- func GetPoliklinikFromID(_id primitive.ObjectID, db *mongo.Database, col string) (data model.Poliklinik, errs error)
- func GetUserFromEmail(email string, db *mongo.Database, col string) (result model.User, err error)
- func GetUserFromID(_id primitive.ObjectID, db *mongo.Database, col string) (data model.User, errs error)
- func InsertAntrian(db *mongo.Database, col string, poli model.Poliklinik, ...) (insertedID primitive.ObjectID, err error)
- func InsertDokter(db *mongo.Database, col string, nama_dokter string, spesialisasi string) (insertedID primitive.ObjectID, err error)
- func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})
- func InsertPasien(db *mongo.Database, col string, nama_pasien string, nomor_ktp string, ...) (insertedID primitive.ObjectID, err error)
- func InsertPoliklinik(db *mongo.Database, col string, kode_poliklinik string, nama_poliklinik string, ...) (insertedID primitive.ObjectID, err error)
- func InsertUser(db *mongo.Database, col string, doc interface{}) (insertedID primitive.ObjectID, err error)
- func LogIn(db *mongo.Database, col string, insertedDoc model.User) (userName string, err error)
- func SignUp(db *mongo.Database, col string, insertedDoc model.User) (insertedID primitive.ObjectID, err error)
- func UpdateAntrian(db *mongo.Database, col string, id primitive.ObjectID, poli model.Poliklinik, ...) (err error)
- func UpdateDokter(db *mongo.Database, col string, id primitive.ObjectID, nama_dokter string, ...) (err error)
- func UpdatePasien(db *mongo.Database, col string, id primitive.ObjectID, nama_pasien string, ...) (err error)
- func UpdatePoliklinik(db *mongo.Database, col string, id primitive.ObjectID, kode_poliklinik string, ...) (err error)
- func UpdateUser(db *mongo.Database, col string, id primitive.ObjectID, doc interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoConn = atdb.MongoConnect(MongoInfo)
View Source
var MongoInfo = atdb.DBInfo{ DBString: MongoString, DBName: "antrian_puskesmas", }
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func DeleteAntrianByID ¶
func DeleteDokterByID ¶ added in v0.0.4
func DeletePasienByID ¶ added in v0.0.4
func DeletePoliklinikByID ¶
func DeleteUserByID ¶ added in v0.0.11
func GetAllPasien ¶ added in v0.0.3
Get All Function
func GetAllPoliklinik ¶
func GetAllPoliklinik(db *mongo.Database, col string) (data []model.Poliklinik)
func GetAllUser ¶ added in v0.0.8
func GetAntrianFromID ¶
func GetDokterFromID ¶
func GetPasienFromID ¶ added in v0.0.3
func GetPasienFromID(_id primitive.ObjectID, db *mongo.Database, col string) (data model.Pasien, errs error)
Get Function
func GetPoliklinikFromID ¶
func GetUserFromEmail ¶ added in v0.0.5
func GetUserFromID ¶ added in v0.0.8
func InsertAntrian ¶
func InsertDokter ¶
func InsertOneDoc ¶
func InsertPasien ¶ added in v0.0.3
func InsertPasien(db *mongo.Database, col string, nama_pasien string, nomor_ktp string, alamat string, nomor_telepon string, tanggal_lahir string, jenis_kelamin string) (insertedID primitive.ObjectID, err error)
Insert Function
func InsertPoliklinik ¶
func InsertUser ¶ added in v0.0.7
func UpdateAntrian ¶
func UpdateDokter ¶
func UpdatePasien ¶ added in v0.0.3
func UpdatePoliklinik ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.