Documentation ¶
Index ¶
- Variables
- func EnumLogging(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)
- func FieldLogging(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)
- func InputLogging(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- func ObjectLogging(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)
- func ScalarLogging(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)
- func UnionLogging(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)
- type ComplexityRoot
- type Config
- type Data
- type DirectiveRoot
- type MyMutationResolver
- type MyQueryResolver
- type Node
- type ResolverRoot
- type State
- type Todo
- type TodoInput
Constants ¶
This section is empty.
Variables ¶
View Source
var AllState = []State{ StateNotYet, StateDone, }
Functions ¶
func EnumLogging ¶
func FieldLogging ¶
func InputLogging ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
func ObjectLogging ¶
func ScalarLogging ¶
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { MyMutation struct { CreateTodo func(childComplexity int, todo TodoInput) int } MyQuery struct { Todo func(childComplexity int, id string) int Todos func(childComplexity int) int } Todo struct { ID func(childComplexity int) int State func(childComplexity int) int Text func(childComplexity int) int Verified func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { EnumLogging func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) FieldLogging func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) InputLogging func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) InterfaceLogging func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) ObjectLogging func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) ScalarLogging func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) UnionLogging func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) }
type MyMutationResolver ¶
type MyQueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { MyMutation() MyMutationResolver MyQuery() MyQueryResolver }
func NewRootResolver ¶
func NewRootResolver() ResolverRoot
Click to show internal directories.
Click to hide internal directories.