Documentation ¶
Overview ¶
Package gfs helps with Google FireStore
Index ¶
- func DeleteCollection(ctx context.Context, client *firestore.Client, ref *firestore.CollectionRef, ...) error
- func GetDocWithRetry(ctx context.Context, firestoreClient *firestore.Client, documentPath string, ...) (*firestore.DocumentSnapshot, bool)
- func RecordExportWithRetry(ctx context.Context, firestoreClient *firestore.Client, ...) (err error)
- type ExportRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteCollection ¶
func DeleteCollection(ctx context.Context, client *firestore.Client, ref *firestore.CollectionRef, batchSize int) error
DeleteCollection is used to delete test document collection in firestore
func GetDocWithRetry ¶
func GetDocWithRetry(ctx context.Context, firestoreClient *firestore.Client, documentPath string, maxRetry int, retryOnNotFound bool, ev glo.EntryValues) (*firestore.DocumentSnapshot, bool)
GetDocWithRetry check if a document exist with retries
Types ¶
Click to show internal directories.
Click to hide internal directories.