Documentation ¶
Index ¶
- Constants
- func Add(b, a interface{}) (interface{}, error)
- func Args(values ...interface{}) (map[string]interface{}, error)
- func CamelCase(values ...interface{}) (string, error)
- func Comment(values ...interface{}) (string, error)
- func Divide(b, a interface{}) (interface{}, error)
- func ExecuteTemplate(w io.Writer, name string, data interface{}) error
- func Find(values ...interface{}) (interface{}, error)
- func GenerateFile(filename, template string, data interface{}) error
- func GenerateGoFile(filename, template string, data interface{}) error
- func Go2GraphQLType(values ...interface{}) (string, error)
- func GoType(values ...interface{}) (string, error)
- func GraphQL2GoType(values ...interface{}) (string, error)
- func GraphQLInputType(values ...interface{}) (string, error)
- func GraphQLType(values ...interface{}) (string, error)
- func GraphQLTypeInternal(typ, primative string) string
- func ImportSplit(str interface{}) (interface{}, error)
- func IsMany2Many(value interface{}) (bool, error)
- func Join(values ...interface{}) ([]string, error)
- func LowerCamelCase(values ...interface{}) (string, error)
- func MethodReturn(values ...interface{}) (interface{}, error)
- func Multiply(b, a interface{}) (interface{}, error)
- func Now() (interface{}, error)
- func ReactPath(path, module, name string) string
- func Safe(values ...interface{}) (interface{}, error)
- func SafeHasPrefix(str *string, s string) bool
- func SafeHasSuffix(str *string, s string) bool
- func SafeString(str *string) string
- func SchemaPath(path, module, name string) string
- func SnakeCase(values ...interface{}) (string, error)
- func Subtract(b, a interface{}) (interface{}, error)
- func TemplatePath(path, module, name string) string
- func Unique(values ...interface{}) ([]string, error)
- type AggregatorGenerator
- type AggregatorTemplate
- type ContextGenerator
- type ContextTemplate
- type DomainGenerator
- type DomainTemplate
- type Generator
- type GraphQLGenerator
- type GraphQLTemplate
- type HttpGenerator
- type HttpTemplate
- type InteractorGenerator
- type InteractorTemplate
- type MainGenerator
- type MainTemplate
- type QueryGenerator
- type QueryTemplate
- type ResolverGenerator
- type ResolverTemplate
- type SQLGenerator
- type SQLTemplate
- type TypesTemplate
Constants ¶
View Source
const ContextModule = "resolvers"
View Source
const ResolverModule = "resolvers"
Variables ¶
This section is empty.
Functions ¶
func Divide ¶
func Divide(b, a interface{}) (interface{}, error)
divide returns the division of b from a.
func GenerateFile ¶
func GenerateGoFile ¶
func Go2GraphQLType ¶
func GraphQL2GoType ¶
func GraphQLInputType ¶
func GraphQLType ¶
func GraphQLTypeInternal ¶
func ImportSplit ¶
func ImportSplit(str interface{}) (interface{}, error)
func IsMany2Many ¶
func LowerCamelCase ¶
func MethodReturn ¶
func MethodReturn(values ...interface{}) (interface{}, error)
func Multiply ¶
func Multiply(b, a interface{}) (interface{}, error)
multiply returns the product of a and b.
func SafeHasPrefix ¶
func SafeHasSuffix ¶
func SafeString ¶
func SchemaPath ¶
func Subtract ¶
func Subtract(b, a interface{}) (interface{}, error)
subtract returns the difference of b from a.
func TemplatePath ¶
Types ¶
type AggregatorGenerator ¶
type AggregatorGenerator struct {
// contains filtered or unexported fields
}
func NewAggregatorGenerator ¶
func NewAggregatorGenerator(path string) *AggregatorGenerator
type AggregatorTemplate ¶
type ContextGenerator ¶
type ContextGenerator struct {
// contains filtered or unexported fields
}
func NewContextGenerator ¶
func NewContextGenerator(path string) *ContextGenerator
type ContextTemplate ¶
type ContextTemplate struct {
Imports []string
}
type DomainGenerator ¶
type DomainGenerator struct {
// contains filtered or unexported fields
}
func NewDomainGenerator ¶
func NewDomainGenerator(path string) *DomainGenerator
type DomainTemplate ¶
type GraphQLGenerator ¶
type GraphQLGenerator struct {
// contains filtered or unexported fields
}
func NewGraphQLGenerator ¶
func NewGraphQLGenerator(path string) *GraphQLGenerator
type GraphQLTemplate ¶
type HttpGenerator ¶
type HttpGenerator struct {
// contains filtered or unexported fields
}
func NewHttpGenerator ¶
func NewHttpGenerator(path string) *HttpGenerator
type HttpTemplate ¶
type HttpTemplate struct {
Imports []string
}
type InteractorGenerator ¶
type InteractorGenerator struct {
// contains filtered or unexported fields
}
func NewInteractorGenerator ¶
func NewInteractorGenerator(path string) *InteractorGenerator
type InteractorTemplate ¶
type MainGenerator ¶
type MainGenerator struct {
// contains filtered or unexported fields
}
func NewMainGenerator ¶
func NewMainGenerator(path string) *MainGenerator
type MainTemplate ¶
type QueryGenerator ¶
type QueryGenerator struct {
// contains filtered or unexported fields
}
func NewQueryGenerator ¶
func NewQueryGenerator(path string) *QueryGenerator
func (*QueryGenerator) Filename ¶
func (t *QueryGenerator) Filename(name string) string
type QueryTemplate ¶
type ResolverGenerator ¶
type ResolverGenerator struct {
// contains filtered or unexported fields
}
func NewResolverGenerator ¶
func NewResolverGenerator(path string) *ResolverGenerator
type ResolverTemplate ¶
type SQLGenerator ¶
type SQLGenerator struct {
// contains filtered or unexported fields
}
func NewSQLGenerator ¶
func NewSQLGenerator(path string) *SQLGenerator
type SQLTemplate ¶
Click to show internal directories.
Click to hide internal directories.