Documentation ¶
Index ¶
- Variables
- type Definition
- type Enum
- type Enums
- type EventDef
- type EventField
- type EventFields
- type Field
- type Fields
- type ParallelStep
- type TemplateEngine
- func (t *TemplateEngine) BackTick() string
- func (t *TemplateEngine) FirstLetter(input string) string
- func (t *TemplateEngine) GenerateCode(noGoMod bool) error
- func (t *TemplateEngine) IterateSteps() (out []int)
- func (t *TemplateEngine) MapEventDecoder(input string) string
- func (t *TemplateEngine) MapEventType(input string) string
- func (t *TemplateEngine) PlusOne(input int) int
- func (t *TemplateEngine) StringJoin(in []string) string
- func (t *TemplateEngine) ToCamelCase(input string) string
- func (t *TemplateEngine) ToLowerCamelCase(input string) string
- func (t *TemplateEngine) ToLowerSnakeCase(input string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var PostgresSchema = "%%SCHEMA%%"
Functions ¶
This section is empty.
Types ¶
type Definition ¶
type Definition struct { Fields Fields Name string IsEntity bool CacheSkipDBLookup bool ParallelSetterSteps map[int][]*ParallelStep ParallelAggregatorSteps map[int][]*ParallelStep }
type EventField ¶
type EventFields ¶
type EventFields []*EventField
func (EventFields) NamedOnly ¶
func (a EventFields) NamedOnly() (out []*EventField)
type Field ¶
type Field struct { Name string Type string GoType string GoInit string Init string Nullable bool Array bool Derived bool Hidden bool PostgresType string PostgresIndex string ParallelStep *ParallelStep }
func ParseFieldDefinition ¶
func ParseFieldDefinition(field *ast.FieldDefinition) (*Field, error)
type ParallelStep ¶
type TemplateEngine ¶
type TemplateEngine struct { PackageName string GoModulePath string Schema string StartBlock int FactorySource string FactoryAddress string Manifest string GraphQLSchema string Abis map[string]string Entities []*Definition Enums Enums HighestParallelStep int HasDynamicTemplate bool EventDefs map[string][]*EventDef Handlers map[string][]*handler Templates []string CurrentSource string CurrentEvent string //super sorry! CurrentHandlerName string //again, really sorry. // contains filtered or unexported fields }
func (*TemplateEngine) BackTick ¶
func (t *TemplateEngine) BackTick() string
func (*TemplateEngine) FirstLetter ¶
func (t *TemplateEngine) FirstLetter(input string) string
func (*TemplateEngine) GenerateCode ¶
func (t *TemplateEngine) GenerateCode(noGoMod bool) error
func (*TemplateEngine) IterateSteps ¶
func (t *TemplateEngine) IterateSteps() (out []int)
func (*TemplateEngine) MapEventDecoder ¶
func (t *TemplateEngine) MapEventDecoder(input string) string
func (*TemplateEngine) MapEventType ¶
func (t *TemplateEngine) MapEventType(input string) string
func (*TemplateEngine) PlusOne ¶
func (t *TemplateEngine) PlusOne(input int) int
func (*TemplateEngine) StringJoin ¶
func (t *TemplateEngine) StringJoin(in []string) string
func (*TemplateEngine) ToCamelCase ¶
func (t *TemplateEngine) ToCamelCase(input string) string
func (*TemplateEngine) ToLowerCamelCase ¶
func (t *TemplateEngine) ToLowerCamelCase(input string) string
func (*TemplateEngine) ToLowerSnakeCase ¶
func (t *TemplateEngine) ToLowerSnakeCase(input string) string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.