Documentation ¶ Index ¶ type Client func New(client *mongo.Client) *Client func (c *Client) InsertDocument(database string, collection string, document map[string]interface{}) error func (c *Client) Truncate(database string, collection string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client struct { *mongo.Client } func New ¶ func New(client *mongo.Client) *Client func (*Client) InsertDocument ¶ func (c *Client) InsertDocument(database string, collection string, document map[string]interface{}) error func (*Client) Truncate ¶ func (c *Client) Truncate(database string, collection string) error Source Files ¶ View all Source files mongo.go Click to show internal directories. Click to hide internal directories.