options

package
v0.8.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

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
		String2 func(childComplexity int) int
		StringX func(childComplexity int) int
		String_ 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 DirectiveRoot

type DirectiveRoot struct {
	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 {
	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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL