Documentation
¶
Index ¶
- type Client
- func (c Client) AddDoc(collection string, data interface{}) error
- func (c Client) Authenticated() bool
- func (c Client) Close() error
- func (c Client) DeleteDoc(path string) error
- func (c Client) GetDoc(path string) map[string]interface{}
- func (c Client) QueryItems(collection string, conditions []Condition, ordering []Order, limit int, ...) ([]interface{}, error)
- func (c Client) SetDoc(path string, data map[string]interface{}) error
- type ClientInterface
- type Condition
- type Order
- type UpdateFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client wraps the Firestore client.
func (Client) Authenticated ¶
Authenticated returns true if client is authenticated.
func (Client) QueryItems ¶
func (c Client) QueryItems( collection string, conditions []Condition, ordering []Order, limit int, updateFunc UpdateFunc, ) ([]interface{}, error)
QueryItems queries the Firestore database.
type ClientInterface ¶
type ClientInterface interface { GetDoc(path string) map[string]interface{} SetDoc(path string, data map[string]interface{}) error AddDoc(collection string, data interface{}) error Authenticated() bool Close() error QueryItems(collection string, conditions []Condition, ordering []Order, limit int, updateFunc UpdateFunc) ([]interface{}, error) DeleteDoc(path string) error }
ClientInterface is the Firestore client interface.
type UpdateFunc ¶
UpdateFunc describes a method signature for an update function.
Click to show internal directories.
Click to hide internal directories.