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 { Bar func(childComplexity int) int Double func(childComplexity int) int Double2 func(childComplexity int) int Foo func(childComplexity int) int Foo2 func(childComplexity int) int Oneof3 func(childComplexity int) int String2 func(childComplexity int) int StringX func(childComplexity int) int String_ func(childComplexity int) int } DataParam1 struct { Param1 func(childComplexity int) int } DataParam2 struct { Param2 func(childComplexity int) int } Foo2 struct { Param1 func(childComplexity int) int } Mutation struct { Name func(childComplexity int, in *pb.Data) int NewName func(childComplexity int, in *pb.Data) int NewName0 func(childComplexity int, in *pb.Data) int 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 DataInputResolver ¶
type DataResolver ¶
type DirectiveRoot ¶
type DirectiveRoot struct { Data_Oneof func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) Query func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) Service func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) Test func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) }
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) NewName(ctx context.Context, in *pb.Data) (*pb.Data, error) Name(ctx context.Context, in *pb.Data) (*pb.Data, error) NewName0(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 { Data() DataResolver Mutation() MutationResolver Query() QueryResolver Subscription() SubscriptionResolver DataInput() DataInputResolver }
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.