Documentation
¶
Index ¶
- func Delete(collection string, id string) error
- func GetAll(collection string) ([]map[string]interface{}, error)
- func GetByID(collection string, ID string) (map[string]interface{}, error)
- func GetByKeyValue(collection string, key string, value string) ([]map[string]interface{}, error)
- func GetClient() *firestore.Client
- func IsRunningInTestMode() bool
- func UpdateOrCreate(collection string, id string, data interface{}, flag ...bool) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetByKeyValue ¶
func GetClient ¶
GetClient uses sync.Once to ensure that the firestore client is only initialized once
func IsRunningInTestMode ¶
func IsRunningInTestMode() bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.