mongo

package
v3.8.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

README

mongo

-- import "gopkg.in/Clever/optimus.v3/sources/mongo"

Usage

func New
func New(iter Iter) optimus.Table

New returns a new Table that iterates over all the results of a mongo query.

type Iter
type Iter interface {
	Next(result interface{}) bool
	Err() error
}

Iter simulates the gopkg.in/mgo.v2.Iter interface so we can remain independent

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(iter Iter) optimus.Table

New returns a new Table that iterates over all the results of a mongo query.

Types

type Iter

type Iter interface {
	Next(result interface{}) bool
	Err() error
}

Iter simulates the gopkg.in/mgo.v2.Iter interface so we can remain independent

Jump to

Keyboard shortcuts

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