Documentation ¶ Index ¶ type Client func NewClient(ctx context.Context, user string, password string, addr []string, ...) (*Client, error) func (c *Client) Close(ctx context.Context) error func (c *Client) GetConn(ctx context.Context) *mongo.Database Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client struct { // contains filtered or unexported fields } func NewClient ¶ func NewClient(ctx context.Context, user string, password string, addr []string, dbName string, replicaSet string, connTimeout int, active int, idle int, idleTimeout int) (*Client, error) func (*Client) Close ¶ func (c *Client) Close(ctx context.Context) error func (*Client) GetConn ¶ func (c *Client) GetConn(ctx context.Context) *mongo.Database Source Files ¶ View all Source files client.go Click to show internal directories. Click to hide internal directories.