mongodb_service

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func NewWithClient

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

Types

type MongoDocService

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

func (*MongoDocService) Delete

func (s *MongoDocService) Delete(ctx context.Context, key *document.Key) error

func (*MongoDocService) Get

func (*MongoDocService) Query

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

func (*MongoDocService) QueryStream

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

func (*MongoDocService) Set

func (s *MongoDocService) Set(ctx context.Context, 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