Documentation ¶
Index ¶
- func New() (document.DocumentService, error)
- func NewWithClient(client *mongo.Client, database string, ctx context.Context) document.DocumentService
- type MongoDocService
- func (s *MongoDocService) Delete(key *document.Key) error
- func (s *MongoDocService) Get(key *document.Key) (*document.Document, error)
- func (s *MongoDocService) Query(collection *document.Collection, expressions []document.QueryExpression, ...) (*document.QueryResult, error)
- func (s *MongoDocService) Set(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 ¶
Types ¶
type MongoDocService ¶
type MongoDocService struct { document.UnimplementedDocumentPlugin // contains filtered or unexported fields }
func (*MongoDocService) Query ¶
func (s *MongoDocService) Query(collection *document.Collection, expressions []document.QueryExpression, limit int, pagingToken map[string]string) (*document.QueryResult, error)
Click to show internal directories.
Click to hide internal directories.