Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestModelPath ¶
TestModelPath returns the path to a particular TestModel in Firestore.
func TestTimestampsPath ¶
TestTimestampsPath returns the path to a particular TestTimestamps in Firestore.
Types ¶
type Test ¶ added in v0.0.10
type Test struct {
// TODO: Add comment to Test.direction.
Direction TestEnum `firestore:"direction"`
}
TODO: Add comment to Test in firemodel schema.
type TestEnum ¶ added in v0.0.10
type TestEnum string
TODO: Add comment to TestEnum in firemodel schema.
const ( // TODO: Add comment to TestEnum_LEFT in firemodel schema. TestEnum_LEFT TestEnum = "LEFT" // TODO: Add comment to TestEnum_RIGHT in firemodel schema. TestEnum_RIGHT TestEnum = "RIGHT" // TODO: Add comment to TestEnum_UP in firemodel schema. TestEnum_UP TestEnum = "UP" // TODO: Add comment to TestEnum_DOWN in firemodel schema. TestEnum_DOWN TestEnum = "DOWN" )
type TestModel ¶
type TestModel struct {
// The name.
Name string `firestore:"name"`
// The age.
Age int64 `firestore:"age"`
// The number pi.
Pi float64 `firestore:"pi"`
// The birth date.
Birthdate time.Time `firestore:"birthdate"`
// True if it is good.
IsGood bool `firestore:"isGood"`
// TODO: Add comment to TestModel.data.
Data []byte `firestore:"data"`
// TODO: Add comment to TestModel.friend.
Friend *firestore.DocumentRef `firestore:"friend"`
// TODO: Add comment to TestModel.location.
Location *latlng.LatLng `firestore:"location"`
// TODO: Add comment to TestModel.colors.
Colors []string `firestore:"colors"`
// TODO: Add comment to TestModel.directions.
Directions []TestEnum `firestore:"directions"`
// TODO: Add comment to TestModel.models.
Models []*TestStruct `firestore:"models"`
// TODO: Add comment to TestModel.refs.
Refs []*firestore.DocumentRef `firestore:"refs"`
// TODO: Add comment to TestModel.model_refs.
ModelRefs []*firestore.DocumentRef `firestore:"modelRefs"`
// TODO: Add comment to TestModel.meta.
Meta map[string]interface{} `firestore:"meta"`
// TODO: Add comment to TestModel.meta_strs.
MetaStrs map[string]string `firestore:"metaStrs"`
// TODO: Add comment to TestModel.direction.
Direction TestEnum `firestore:"direction"`
// TODO: Add comment to TestModel.test_file.
TestFile *runtime.File `firestore:"testFile"`
// TODO: Add comment to TestModel.url.
Url runtime.URL `firestore:"url"`
// TODO: Add comment to TestModel.nested.
Nested *TestStruct `firestore:"nested"`
// Creation timestamp.
CreatedAt time.Time `firestore:"createdAt,serverTimestamp"`
// Update timestamp.
UpdatedAt time.Time `firestore:"updatedAt,serverTimestamp"`
}
A Test is a test model.
Firestore document location: /users/{user_id}/test_models/{test_model_id}
type TestStruct ¶ added in v0.0.5
type TestStruct struct {
// TODO: Add comment to TestStruct.where.
Where string `firestore:"where"`
// TODO: Add comment to TestStruct.how_much.
HowMuch int64 `firestore:"howMuch"`
// TODO: Add comment to TestStruct.some_enum.
SomeEnum TestEnum `firestore:"someEnum"`
}
TODO: Add comment to TestStruct in firemodel schema.
type TestTimestamps ¶
type TestTimestamps struct {
// Creation timestamp.
CreatedAt time.Time `firestore:"createdAt,serverTimestamp"`
// Update timestamp.
UpdatedAt time.Time `firestore:"updatedAt,serverTimestamp"`
}
TODO: Add comment to TestTimestamps in firemodel schema.
Firestore document location: /timestamps/{test_timestamps_id}
Click to show internal directories.
Click to hide internal directories.