Documentation ¶
Index ¶
- Variables
- func ConnectToDB(connectionString, databaseName, collectionName string) error
- func ConnectToFHIR(serverURL string) *fhir.Connection
- func DisconnectDB()
- func GetDBConnection() (*mongo.Collection, error)
- func GetFHIRConnection() *fhir.Connection
- func GetLoggerInstance() *zerolog.Logger
- func SetupLoggerInstance(filename, env string) *zerolog.Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var Client *mongo.Client
Client variable stores the mongoDB Connection
View Source
var Collection *mongo.Collection
Collection variable stores the mongoDB collection
View Source
var FHIRConnection *fhir.Connection
FHIRConnection variable stores the FHIR Connection
Functions ¶
func ConnectToDB ¶
ConnectToDB Method connect to MongoDB
func ConnectToFHIR ¶
func ConnectToFHIR(serverURL string) *fhir.Connection
ConnectToFHIR Method connect to FHIR server
func GetDBConnection ¶
func GetDBConnection() (*mongo.Collection, error)
GetDBConnection Get the Database connection
func GetFHIRConnection ¶
func GetFHIRConnection() *fhir.Connection
GetFHIRConnection Get the Database connection
func SetupLoggerInstance ¶
SetupLoggerInstance ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.