Documentation ¶
Index ¶
- func New() (document.DocumentService, error)
- func NewWithClient(client *mongo.Client, database string) document.DocumentService
- type MongoDocService
- func (s *MongoDocService) Delete(ctx context.Context, key *document.Key) error
- func (s *MongoDocService) Get(ctx context.Context, key *document.Key) (*document.Document, error)
- func (s *MongoDocService) Query(ctx context.Context, collection *document.Collection, ...) (*document.QueryResult, error)
- func (s *MongoDocService) QueryStream(ctx context.Context, collection *document.Collection, ...) document.DocumentIterator
- func (s *MongoDocService) Set(ctx context.Context, key *document.Key, value map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New() (document.DocumentService, error)
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) 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
Click to show internal directories.
Click to hide internal directories.