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 { Config struct { BaseURL func(childComplexity int) int } Header struct { Name func(childComplexity int) int Value func(childComplexity int) int } Invocation struct { ID func(childComplexity int) int Method func(childComplexity int) int Received func(childComplexity int) int RequestBody func(childComplexity int) int RequestHeaders func(childComplexity int) int ResponseBody func(childComplexity int) int ResponseHeaders func(childComplexity int) int Started func(childComplexity int) int Status func(childComplexity int) int URL func(childComplexity int) int } Mutation struct { MakeBrowserInvocation func(childComplexity int, input schema.BrowserInvocationInput) int MakeServerInvocation func(childComplexity int, input schema.ServerInvocationInput) int } Query struct { GetConfig func(childComplexity int) int GetInvocation func(childComplexity int, id string) int ListInvocations func(childComplexity int) int } Subscription struct { SubscribeInvocations 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 ¶
type Resolver struct {
Repos repository.Repos
}
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() MutationResolver
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
func (*Resolver) Subscription ¶
func (r *Resolver) Subscription() SubscriptionResolver
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver Subscription() SubscriptionResolver }
type SubscriptionResolver ¶
type SubscriptionResolver interface {
SubscribeInvocations(ctx context.Context) (<-chan []*schema.Invocation, error)
}
Click to show internal directories.
Click to hide internal directories.