Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateClient = defaultNewClient
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.3.0
type Client struct { Client *mongo.Database Cfg ClientConfig }
type ClientConfig ¶ added in v0.3.0
type ClientConfig struct { Host string `json:"host" yaml:"host"` User string `json:"user" yaml:"user"` Pwd string `json:"pwd" yaml:"pwd"` DB string `json:"db" yaml:"db"` Options string `json:"options" yaml:"options"` MinPoolSize int `json:"min_pool_size" yaml:"min_pool_size"` MaxPoolSize int `json:"max_pool_size" yaml:"max_pool_size"` }
type Component ¶
type Component struct { DSNPrint bool Cfg ComponentConfig Clts map[string]*Client }
type ComponentConfig ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.