firestore

package
v0.0.0-...-5417d07 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetParentIDFromMeta

func GetParentIDFromMeta(meta metadata.Metadata) string

GetParentIDFromMeta returns the ID of the parent of a resource

func GetResourceIDFromMeta

func GetResourceIDFromMeta(meta metadata.Metadata) string

GetResourceIDFromMeta returns the ID of a resource

Types

type Click

type Click struct {
	X int
	Y int
}

Click represents a clicked position

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL