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 { Data struct { Double func(childComplexity int) int Double2 func(childComplexity int) int Foo func(childComplexity int) int Foo2 func(childComplexity int) int String2 func(childComplexity int) int StringX func(childComplexity int) int } Foo2 struct { Param1 func(childComplexity int) int } Mutation struct { QueryMutate1 func(childComplexity int, in *pb.Data) int ServiceInvalidSubscribe3 func(childComplexity int, in *pb.Data) int ServiceMutate1 func(childComplexity int, in *pb.Data) int ServiceMutate2 func(childComplexity int, in *pb.Data) int ServicePubSub1 func(childComplexity int, in *pb.Data) int ServicePubSub2 func(childComplexity int, in *pb.Data) int ServicePublish func(childComplexity int, in *pb.Data) int } Query struct { QueryQuery1 func(childComplexity int, in *pb.Data) int QueryQuery2 func(childComplexity int, in *pb.Data) int ServiceInvalidSubscribe1 func(childComplexity int, in *pb.Data) int ServiceQuery1 func(childComplexity int, in *pb.Data) int } Subscription struct { QuerySubscribe func(childComplexity int, in *pb.Data) int ServiceInvalidSubscribe2 func(childComplexity int, in *pb.Data) int ServiceInvalidSubscribe3 func(childComplexity int, in *pb.Data) int ServicePubSub1 func(childComplexity int, in *pb.Data) int ServicePubSub2 func(childComplexity int, in *pb.Data) int ServiceSubscribe func(childComplexity int, in *pb.Data) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type MutationResolver ¶
type MutationResolver interface { ServiceMutate1(ctx context.Context, in *pb.Data) (*pb.Data, error) ServiceMutate2(ctx context.Context, in *pb.Data) (*pb.Data, error) ServicePublish(ctx context.Context, in *pb.Data) (*pb.Data, error) ServicePubSub1(ctx context.Context, in *pb.Data) (*pb.Data, error) ServiceInvalidSubscribe3(ctx context.Context, in *pb.Data) (*pb.Data, error) ServicePubSub2(ctx context.Context, in *pb.Data) (*pb.Data, error) QueryMutate1(ctx context.Context, in *pb.Data) (*pb.Data, error) }
type QueryResolver ¶
type QueryResolver interface { ServiceQuery1(ctx context.Context, in *pb.Data) (*pb.Data, error) ServiceInvalidSubscribe1(ctx context.Context, in *pb.Data) (*pb.Data, error) QueryQuery1(ctx context.Context, in *pb.Data) (*pb.Data, error) QueryQuery2(ctx context.Context, in *pb.Data) (*pb.Data, error) }
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver Subscription() SubscriptionResolver }
type SubscriptionResolver ¶
type SubscriptionResolver interface { ServiceSubscribe(ctx context.Context, in *pb.Data) (<-chan *pb.Data, error) ServicePubSub1(ctx context.Context, in *pb.Data) (<-chan *pb.Data, error) ServiceInvalidSubscribe2(ctx context.Context, in *pb.Data) (<-chan *pb.Data, error) ServiceInvalidSubscribe3(ctx context.Context, in *pb.Data) (<-chan *pb.Data, error) ServicePubSub2(ctx context.Context, in *pb.Data) (<-chan *pb.Data, error) QuerySubscribe(ctx context.Context, in *pb.Data) (<-chan *pb.Data, error) }
Click to show internal directories.
Click to hide internal directories.