Documentation ¶
Index ¶
- Variables
- func DeletePasienByID(_id primitive.ObjectID, db *mongo.Database, col string) error
- func GetAllPasien(db *mongo.Database, col string) (data []model.Biodata)
- func GetPasienByID(_id primitive.ObjectID, db *mongo.Database, col string) (model.Biodata, error)
- func InsertOneDoc(db string, collection string, doc interface{}) (insertedID interface{})
- func InsertPasien(db *mongo.Database, col string, pasienName string, gender string, ttl string, ...) (insertedID primitive.ObjectID, err error)
- func MongoConnect(dbname string) (db *mongo.Database)
- func UpdatePasien(ctx context.Context, db *mongo.Database, col string, _id primitive.ObjectID, ...) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoConn = atdb.MongoConnect(MongoInfo)
View Source
var MongoInfo = atdb.DBInfo{ DBString: MongoString, DBName: "rumahsakit", }
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func DeletePasienByID ¶
func GetPasienByID ¶
func InsertOneDoc ¶
func InsertPasien ¶
func MongoConnect ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.