common

package
v0.0.0-...-d6f4c82 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

func ConnectToDB(connectionString, databaseName, collectionName string) error

ConnectToDB Method connect to MongoDB

func ConnectToFHIR

func ConnectToFHIR(serverURL string) *fhir.Connection

ConnectToFHIR Method connect to FHIR server

func DisconnectDB

func DisconnectDB()

DisconnectDB to disconnect the DB connection

func GetDBConnection

func GetDBConnection() (*mongo.Collection, error)

GetDBConnection Get the Database connection

func GetFHIRConnection

func GetFHIRConnection() *fhir.Connection

GetFHIRConnection Get the Database connection

func GetLoggerInstance

func GetLoggerInstance() *zerolog.Logger

GetLoggerInstance ...

func SetupLoggerInstance

func SetupLoggerInstance(filename, env string) *zerolog.Logger

SetupLoggerInstance ...

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL