typed

package
v0.0.0-...-519d24f Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: BSD-3-Clause Imports: 13 Imported by: 0

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 NewGenerator

func NewGenerator() *Generator

NewGenerator returns a new instance of Generator

func (*Generator) GetAnnotationSymbol

func (*Generator) GetAnnotationSymbol() generator.AnnotationSymbol

GetAnnotationSymbol implements generator.Generator#GetAnnotationSymbol

func (*Generator) GetFormatter

func (*Generator) GetFormatter() generator.Formatter

GetFormatter implements generator.Generator#GetFormatter

func (*Generator) Run

type QuerySpec

type QuerySpec struct {
	Name         string
	PropertyName string
	Type         string
}

QuerySpec is a specification for query

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

Directories

Path Synopsis
Code generated by github.com/yssk22/go/generator DO NOT EDIT.
Code generated by github.com/yssk22/go/generator DO NOT EDIT.

Jump to

Keyboard shortcuts

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