Documentation
¶
Index ¶
- func HandleAssets(li lib.Lib) http.HandlerFunc
- func HandleGQL(c lib.Lib) http.HandlerFunc
- func HandlePlayground() http.HandlerFunc
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type ComplexityRoot
- type Config
- type DirectiveRoot
- type MutationResolver
- type QueryResolver
- type Resolver
- type ResolverRoot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleAssets ¶
func HandleAssets(li lib.Lib) http.HandlerFunc
func HandlePlayground ¶
func HandlePlayground() http.HandlerFunc
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Health struct { Code func(childComplexity int) int Ok func(childComplexity int) int Time func(childComplexity int) int } Mutation struct { Completed func(childComplexity int) int Log func(childComplexity int, input model.LogInput) int Register func(childComplexity int) int } Query struct { Health func(childComplexity int) int Task func(childComplexity int) int } Task struct { Cmd func(childComplexity int) int Status func(childComplexity int) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type QueryResolver ¶
type Resolver ¶
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() MutationResolver
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.