mongodb

package
v0.1.140 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config map[string]interface{}) (interface{}, error)

Types

type Client

type Client struct {
	MClient *qmgo.Client
	// contains filtered or unexported fields
}

func (*Client) Init

func (c *Client) Init(clientOption qopts.ClientOptions) error

func (*Client) ReadTimeout

func (c *Client) ReadTimeout() time.Duration

func (*Client) SetConnectTimeout

func (c *Client) SetConnectTimeout(v string) error

func (*Client) SetDsn

func (c *Client) SetDsn(dsn string)

func (*Client) SetReadTimeout

func (c *Client) SetReadTimeout(v string) error

func (*Client) SetWriteTimeout

func (c *Client) SetWriteTimeout(v string) error

func (*Client) WriteTimeout

func (c *Client) WriteTimeout() time.Duration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL