Documentation ¶
Index ¶
- type Driver
- type Firestore
- func (f Firestore) Close() error
- func (f Firestore) Delete(ctx context.Context, collection, id string) (ok bool, err error)
- func (f Firestore) Get(ctx context.Context, collection, id string, value interface{}) (err error)
- func (f Firestore) GetAll(ctx context.Context, collection string) (values []map[string]interface{}, err error)
- func (f Firestore) Ping(ctx context.Context) error
- func (f Firestore) Set(ctx context.Context, collection, id string, value interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Firestore ¶
type Firestore struct {
// contains filtered or unexported fields
}
Firestore is the storage driver to manage data for the Firebase Firestore
collection : CA Identifier that is used to split different datasets on the same storage
id : ID of the item to retrieve value : pointer to fill/set with the information
func (Firestore) Get ¶
Get retrieves a value from the storage and unmarshals it to the required type
func (Firestore) GetAll ¶
func (f Firestore) GetAll(ctx context.Context, collection string) (values []map[string]interface{}, err error)
GetAll retrieves all the items for the required dataset
Click to show internal directories.
Click to hide internal directories.