Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Connect string Address string User string Password string Port string Database string Mechanism string MaxOpenConns string MaxIdleConns string Transaction string }
Config config
func ParseConfigFromKV ¶
ParseConfigFromKV returns a new config
func (Config) BuildURI ¶
BuildURI return mongo uri according to https://docs.mongodb.com/manual/reference/connection-string/ format example: mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
func (Config) GetMaxIdleConns ¶
func (Config) GetMaxOpenConns ¶
Click to show internal directories.
Click to hide internal directories.