mongodb

package
v0.0.0-...-2c539bb Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const PrimaryKey = "_name"

PrimaryKey primary key

Variables

This section is empty.

Functions

func New

New new mongodb datastore instance

Types

type Iterator

type Iterator struct {
	// contains filtered or unexported fields
}

Iterator mongo iterator implementation

func (*Iterator) Close

func (i *Iterator) Close(ctx context.Context) error

Close iterator close

func (*Iterator) Decode

func (i *Iterator) Decode(entity interface{}) error

Decode decode data

func (*Iterator) Next

func (i *Iterator) Next(ctx context.Context) bool

Next read next data

Jump to

Keyboard shortcuts

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