mongo

package
v0.0.0-...-23a4e18 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2017 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDatabase

func InitDatabase(hostname string, numWorkers int64, ssl bool) error

InitDatabase initializes a pool of MongoDB clients.

func Insert

func Insert(workerId int64, key string, value *qb.Doc) error

Insert adds new documents to MongoDB collection.

func Query

func Query(workerId int64, payload *qb.QueryPayload) error

Query finds matching documents using MongoDB queries.

Types

This section is empty.

Jump to

Keyboard shortcuts

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