Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Mutation struct { SetValue func(childComplexity int, input model.ValueInput) int SetValueInternal func(childComplexity int, input model.ValueInput) int } PageInfo struct { Next func(childComplexity int) int Page func(childComplexity int) int PerPage func(childComplexity int) int Prev func(childComplexity int) int Total func(childComplexity int) int TotalPage func(childComplexity int) int } Query struct { GetValue func(childComplexity int) int } Subscription struct { SubscribeToValueChanges func(childComplexity int) int } TagValue struct { Value func(childComplexity int) int } TagValues struct { Key func(childComplexity int) int Values func(childComplexity int) int } ValueOutput struct { Value func(childComplexity int) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { Validation func(ctx context.Context, obj interface{}, next graphql.Resolver, constraint string) (res interface{}, err error) Warden func(ctx context.Context, obj interface{}, next graphql.Resolver, resource string, action string, resourceKey *string, filterField *string) (res interface{}, err error) }
type MutationResolver ¶
type MutationResolver interface { SetValueInternal(ctx context.Context, input model.ValueInput) (*model.ValueOutput, error) SetValue(ctx context.Context, input model.ValueInput) (*model.ValueOutput, error) }
type QueryResolver ¶
type QueryResolver interface {
GetValue(ctx context.Context) (*model.ValueOutput, error)
}
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver Subscription() SubscriptionResolver }
type SubscriptionResolver ¶
type SubscriptionResolver interface {
SubscribeToValueChanges(ctx context.Context) (<-chan *model.ValueOutput, error)
}
Click to show internal directories.
Click to hide internal directories.