Documentation ¶
Index ¶
- func Collection(ctx context.Context, path string) *firestore.CollectionRef
- func Create(ctx context.Context, dr *firestore.DocumentRef, data interface{}) error
- func Delete(ctx context.Context, dr *firestore.DocumentRef, opts ...firestore.Precondition) error
- func DocumentRefs(ctx context.Context, cr *firestore.CollectionRef) *firestore.DocumentRefIterator
- func Documents(ctx context.Context, q firestore.Query) *firestore.DocumentIterator
- func FirestoreClient(ctx context.Context) *firestore.Client
- func Get(ctx context.Context, dr *firestore.DocumentRef) (*firestore.DocumentSnapshot, error)
- func RunTransaction(ctx context.Context, f func(ctx context.Context) error) error
- func Set(ctx context.Context, dr *firestore.DocumentRef, data interface{}, ...) error
- func Update(ctx context.Context, dr *firestore.DocumentRef, data []firestore.Update, ...) error
- func WithFirestoreClient(ctx context.Context, c *firestore.Client) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Collection ¶
func Collection(ctx context.Context, path string) *firestore.CollectionRef
func Delete ¶
func Delete(ctx context.Context, dr *firestore.DocumentRef, opts ...firestore.Precondition) error
func DocumentRefs ¶
func DocumentRefs(ctx context.Context, cr *firestore.CollectionRef) *firestore.DocumentRefIterator
func Get ¶
func Get(ctx context.Context, dr *firestore.DocumentRef) (*firestore.DocumentSnapshot, error)
func RunTransaction ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.