Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMongoDbConnector ¶
func GetMongoDbConnector(db string, collection string) model.DbConnector
GetMongoDbConnector initialize and return model.DbConnector MongoDB instance
Types ¶
type Config ¶
type Config struct { Uri string // MongoDB URI: mongodb://127.0.0.1:27017/?directConnection=true Db string // MongoDB database name to use: test Collection string // Collection name to use: url-shortener }
Config MongoDB credentials struct
func ParseConfig ¶
ParseConfig parses given configuration file and initialize Config object
Click to show internal directories.
Click to hide internal directories.