mongodb_service

package
v0.16.0-rc.16 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func NewWithClient

func NewWithClient(client *mongo.Client, database string, ctx context.Context) document.DocumentService

Types

type MongoDocService

type MongoDocService struct {
	document.UnimplementedDocumentPlugin
	// contains filtered or unexported fields
}

func (*MongoDocService) Delete

func (s *MongoDocService) Delete(key *document.Key) error

func (*MongoDocService) Get

func (*MongoDocService) Query

func (s *MongoDocService) Query(collection *document.Collection, expressions []document.QueryExpression, limit int, pagingToken map[string]string) (*document.QueryResult, error)

func (*MongoDocService) QueryStream

func (s *MongoDocService) QueryStream(collection *document.Collection, expressions []document.QueryExpression, limit int) document.DocumentIterator

func (*MongoDocService) Set

func (s *MongoDocService) Set(key *document.Key, value map[string]interface{}) error

Jump to

Keyboard shortcuts

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