Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldSpec ¶
type FieldSpec struct { Name string IsKey bool IsID bool IsTimestamp bool IsSearch bool NoIndex bool }
FieldSpec is a specification for datasatore entity fields.
type Generator ¶
type Generator struct { }
Generator is a generator for datastore types
func (*Generator) GetAnnotationSymbol ¶
func (*Generator) GetAnnotationSymbol() generator.AnnotationSymbol
GetAnnotationSymbol implements generator.Generator#GetAnnotationSymbol
func (*Generator) GetFormatter ¶
GetFormatter implements generator.Generator#GetFormatter
func (*Generator) Run ¶
func (g *Generator) Run(pkg *generator.PackageInfo, nodes []*generator.AnnotatedNode) ([]*generator.Result, error)
type Spec ¶
type Spec struct { StructName string // struct name KindName string // entity kind name (usually same as StructName) but different if kind=XX is specfiied Namespace string // namespace to use (default: "") KeyField string TimestampField string IsSearchable bool Fields []*FieldSpec QuerySpecs []*QuerySpec }
Spec is a specificaiton for datastore entity
Click to show internal directories.
Click to hide internal directories.