Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct { abstract.ConfigurableConnector Client *mongo.Client Database *mongo.Database Collection *mongo.Collection }
Connector ... struct containing info on how to connect to a mongo db
func (*Connector) CloseConnection ¶
func (c *Connector) CloseConnection()
CloseConnection ... Disconnects and deallocates resources
func (*Connector) InitConnection ¶
func (c *Connector) InitConnection(def *conf.DataSourceDefinition)
InitConnection ... Instantiate the connection with the remote DB
Click to show internal directories.
Click to hide internal directories.