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