Documentation ¶
Index ¶
- func BuildFields(cfg *config.Config, model config.Model) ([]Field, Imports)
- func BuildRepoMethods(cfg *config.Config) map[string][]Method
- func BuildTypes(cfg *config.Config) ([]Type, Imports)
- func CamelCasef(f string, args ...interface{}) string
- func LowerCamelCasef(f string, args ...interface{}) string
- type Arg
- type ByMethodName
- type Field
- type Imports
- type Method
- type Model
- type Mutation
- type NameInternal
- type Relationship
- type Repo
- type Resolver
- type Return
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CamelCasef ¶
func LowerCamelCasef ¶
Types ¶
type ByMethodName ¶
type ByMethodName []Method
func (ByMethodName) Len ¶
func (t ByMethodName) Len() int
func (ByMethodName) Less ¶
func (t ByMethodName) Less(i, j int) bool
func (ByMethodName) Swap ¶
func (t ByMethodName) Swap(i, j int)
type Field ¶
type Method ¶
type Method struct { Type string Name string Args []Arg Relationship *Relationship Return Return }
type Model ¶
type Model struct { Name string Type string Plural string Description string Fields []Field Internal string Repo Repo Imports Imports Mutations []Mutation }
func BuildModels ¶
type NameInternal ¶
type Relationship ¶
type Relationship struct { To NameInternal Through NameInternal Field string Type string }
func (Relationship) String ¶
func (t Relationship) String() string
Click to show internal directories.
Click to hide internal directories.