Documentation ¶
Index ¶
- func GetParentIDFromMeta(meta metadata.Metadata) string
- func GetResourceIDFromMeta(meta metadata.Metadata) string
- type Click
- type FirestoreValue
- func (v FirestoreValue) GetClickValue(name string) (*Click, error)
- func (v FirestoreValue) GetIntArrayValue(name string) ([]int, error)
- func (v FirestoreValue) GetIntegerValue(name string) (int, error)
- func (v FirestoreValue) GetStringValue(name string) (string, error)
- func (v FirestoreValue) GetTimestampValue(name string) (time.Time, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetParentIDFromMeta ¶
GetParentIDFromMeta returns the ID of the parent of a resource
func GetResourceIDFromMeta ¶
GetResourceIDFromMeta returns the ID of a resource
Types ¶
type FirestoreValue ¶
type FirestoreValue struct {
Fields interface{} `json:"fields"`
}
FirestoreValue holds Firestore fields.
func (FirestoreValue) GetClickValue ¶
func (v FirestoreValue) GetClickValue(name string) (*Click, error)
GetClickValue extracts a Click value from a Firestore value
func (FirestoreValue) GetIntArrayValue ¶
func (v FirestoreValue) GetIntArrayValue(name string) ([]int, error)
GetIntArrayValue returns an array of integer from a FirestoreValue Returns an empty array if 'name' is not a defined field
func (FirestoreValue) GetIntegerValue ¶
func (v FirestoreValue) GetIntegerValue(name string) (int, error)
GetIntegerValue extracts an integer value from a Firestore value
func (FirestoreValue) GetStringValue ¶
func (v FirestoreValue) GetStringValue(name string) (string, error)
GetStringValue extracts a string value from a Firestore value
func (FirestoreValue) GetTimestampValue ¶
func (v FirestoreValue) GetTimestampValue(name string) (time.Time, error)
GetTimestampValue extracts a timestamp value from a Firestore value
Click to show internal directories.
Click to hide internal directories.