Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client[T any] interface { // GetDocument retrieves a document at the given path. GetDocument(ctx context.Context, path string) (*T, error) // SetDocument creates a document in the given collection at the given path with the given data. SetDocument(ctx context.Context, path string, data *T) error }
Client is an interface wrapping the Firebase Admin SDK for our usage of firestore. It does not use a fluent API to make mocking easier.
Click to show internal directories.
Click to hide internal directories.