constructs

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: 14 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 {
	Baz struct {
		Param1 func(childComplexity int) int
	}

	Foo struct {
		Param1 func(childComplexity int) int
		Param2 func(childComplexity int) int
	}

	FooFoo2 struct {
		Param1 func(childComplexity int) int
	}

	GoogleProtobufTimestamp struct {
		Nanos   func(childComplexity int) int
		Seconds func(childComplexity int) int
	}

	Maps struct {
		BoolBool         func(childComplexity int) int
		Fixed32Fixed32   func(childComplexity int) int
		Fixed64Fixed64   func(childComplexity int) int
		Int32Int32       func(childComplexity int) int
		Int64Int64       func(childComplexity int) int
		Sfixed32Sfixed32 func(childComplexity int) int
		Sfixed64Sfixed64 func(childComplexity int) int
		Sint32Sint32     func(childComplexity int) int
		Sint64Sint64     func(childComplexity int) int
		StringBar        func(childComplexity int) int
		StringBytes      func(childComplexity int) int
		StringDouble     func(childComplexity int) int
		StringFloat      func(childComplexity int) int
		StringFoo        func(childComplexity int) int
		StringString     func(childComplexity int) int
		Uint32Uint32     func(childComplexity int) int
		Uint64Uint64     func(childComplexity int) int
	}

	MapsBoolBoolEntry struct {
		Key   func(childComplexity int) int
		Value func(childComplexity int) int
	}

	MapsFixed32Fixed32Entry struct {
		Key   func(childComplexity int) int
		Value func(childComplexity int) int
	}

	MapsFixed64Fixed64Entry struct {
		Key   func(childComplexity int) int
		Value func(childComplexity int) int
	}

	MapsInt32Int32Entry struct {
		Key   func(childComplexity int) int
		Value func(childComplexity int) int
	}

	MapsInt64Int64Entry struct {
		Key   func(childComplexity int) int
		Value func(childComplexity int) int
	}

	MapsSfixed32Sfixed32Entry struct {
		Key   func(childComplexity int) int
		Value func(childComplexity int) int
	}

	MapsSfixed64Sfixed64Entry struct {
		Key   func(childComplexity int) int
		Value func(childComplexity int) int
	}

	MapsSint32Sint32Entry struct {
		Key   func(childComplexity int) int
		Value func(childComplexity int) int
	}

	MapsSint64Sint64Entry struct {
		Key   func(childComplexity int) int
		Value func(childComplexity int) int
	}

	MapsStringBarEntry struct {
		Key   func(childComplexity int) int
		Value func(childComplexity int) int
	}

	MapsStringBytesEntry struct {
		Key   func(childComplexity int) int
		Value func(childComplexity int) int
	}

	MapsStringDoubleEntry struct {
		Key   func(childComplexity int) int
		Value func(childComplexity int) int
	}

	MapsStringFloatEntry struct {
		Key   func(childComplexity int) int
		Value func(childComplexity int) int
	}

	MapsStringFooEntry struct {
		Key   func(childComplexity int) int
		Value func(childComplexity int) int
	}

	MapsStringStringEntry struct {
		Key   func(childComplexity int) int
		Value func(childComplexity int) int
	}

	MapsUint32Uint32Entry struct {
		Key   func(childComplexity int) int
		Value func(childComplexity int) int
	}

	MapsUint64Uint64Entry struct {
		Key   func(childComplexity int) int
		Value func(childComplexity int) int
	}

	Mutation struct {
		ConstructsAny        func(childComplexity int, in *anypb.Any) int
		ConstructsCallWithID func(childComplexity int) int
		ConstructsEmpty      func(childComplexity int) int
		ConstructsEmpty2     func(childComplexity int) int
		ConstructsEmpty3     func(childComplexity int) int
		ConstructsMaps       func(childComplexity int, in *pb.Maps) int
		ConstructsOneof      func(childComplexity int, in *pb.Oneof) int
		ConstructsRef        func(childComplexity int, in *pb.Ref) int
		ConstructsRepeated   func(childComplexity int, in *pb.Repeated) int
		ConstructsScalars    func(childComplexity int, in *pb.Scalars) int
	}

	Oneof struct {
		Oneof1 func(childComplexity int) int
		Oneof2 func(childComplexity int) int
		Oneof3 func(childComplexity int) int
		Param1 func(childComplexity int) int
	}

	OneofParam2 struct {
		Param2 func(childComplexity int) int
	}

	OneofParam3 struct {
		Param3 func(childComplexity int) int
	}

	OneofParam4 struct {
		Param4 func(childComplexity int) int
	}

	OneofParam5 struct {
		Param5 func(childComplexity int) int
	}

	OneofParam6 struct {
		Param6 func(childComplexity int) int
	}

	PbAny struct {
		Param1 func(childComplexity int) int
	}

	Query struct {
		Dummy func(childComplexity int) int
	}

	Ref struct {
		En1        func(childComplexity int) int
		En2        func(childComplexity int) int
		External   func(childComplexity int) int
		File       func(childComplexity int) int
		FileEnum   func(childComplexity int) int
		FileMsg    func(childComplexity int) int
		Foreign    func(childComplexity int) int
		Gz         func(childComplexity int) int
		Local      func(childComplexity int) int
		LocalTime  func(childComplexity int) int
		LocalTime2 func(childComplexity int) int
	}

	RefBar struct {
		Param1 func(childComplexity int) int
	}

	RefFoo struct {
		Bar1          func(childComplexity int) int
		Bar2          func(childComplexity int) int
		En1           func(childComplexity int) int
		En2           func(childComplexity int) int
		ExternalTime1 func(childComplexity int) int
		LocalTime2    func(childComplexity int) int
	}

	RefFooBar struct {
		Param1 func(childComplexity int) int
	}

	RefFooBazGz struct {
		Param1 func(childComplexity int) int
	}

	Repeated struct {
		Bar      func(childComplexity int) int
		Bool     func(childComplexity int) int
		Bytes    func(childComplexity int) int
		Double   func(childComplexity int) int
		Fixed32  func(childComplexity int) int
		Fixed64  func(childComplexity int) int
		Float    func(childComplexity int) int
		Foo      func(childComplexity int) int
		Int32    func(childComplexity int) int
		Int64    func(childComplexity int) int
		Sfixed32 func(childComplexity int) int
		Sfixed64 func(childComplexity int) int
		Sint32   func(childComplexity int) int
		Sint64   func(childComplexity int) int
		StringX  func(childComplexity int) int
		Uint32   func(childComplexity int) int
		Uint64   func(childComplexity int) int
	}

	Scalars struct {
		Bool     func(childComplexity int) int
		Bytes    func(childComplexity int) int
		Double   func(childComplexity int) int
		Fixed32  func(childComplexity int) int
		Fixed64  func(childComplexity int) int
		Float    func(childComplexity int) int
		Int32    func(childComplexity int) int
		Int64    func(childComplexity int) int
		Sfixed32 func(childComplexity int) int
		Sfixed64 func(childComplexity int) int
		Sint32   func(childComplexity int) int
		Sint64   func(childComplexity int) int
		StringX  func(childComplexity int) int
		Uint32   func(childComplexity int) int
		Uint64   func(childComplexity int) int
	}

	Timestamp struct {
		Time func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
	Constructs   func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)
	Oneof_Oneof1 func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)
	Oneof_Oneof2 func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)
	Oneof_Oneof3 func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)
}

type MapsInputResolver

type MapsInputResolver interface {
	Int32Int32(ctx context.Context, obj *pb.Maps, data []*pb.Maps_Int32Int32Entry) error
	Int64Int64(ctx context.Context, obj *pb.Maps, data []*pb.Maps_Int64Int64Entry) error
	Uint32Uint32(ctx context.Context, obj *pb.Maps, data []*pb.Maps_Uint32Uint32Entry) error
	Uint64Uint64(ctx context.Context, obj *pb.Maps, data []*pb.Maps_Uint64Uint64Entry) error
	Sint32Sint32(ctx context.Context, obj *pb.Maps, data []*pb.Maps_Sint32Sint32Entry) error
	Sint64Sint64(ctx context.Context, obj *pb.Maps, data []*pb.Maps_Sint64Sint64Entry) error
	Fixed32Fixed32(ctx context.Context, obj *pb.Maps, data []*pb.Maps_Fixed32Fixed32Entry) error
	Fixed64Fixed64(ctx context.Context, obj *pb.Maps, data []*pb.Maps_Fixed64Fixed64Entry) error
	Sfixed32Sfixed32(ctx context.Context, obj *pb.Maps, data []*pb.Maps_Sfixed32Sfixed32Entry) error
	Sfixed64Sfixed64(ctx context.Context, obj *pb.Maps, data []*pb.Maps_Sfixed64Sfixed64Entry) error
	BoolBool(ctx context.Context, obj *pb.Maps, data []*pb.Maps_BoolBoolEntry) error
	StringString(ctx context.Context, obj *pb.Maps, data []*pb.Maps_StringStringEntry) error
	StringBytes(ctx context.Context, obj *pb.Maps, data []*pb.Maps_StringBytesEntry) error
	StringFloat(ctx context.Context, obj *pb.Maps, data []*pb.Maps_StringFloatEntry) error
	StringDouble(ctx context.Context, obj *pb.Maps, data []*pb.Maps_StringDoubleEntry) error
	StringFoo(ctx context.Context, obj *pb.Maps, data []*pb.Maps_StringFooEntry) error
	StringBar(ctx context.Context, obj *pb.Maps, data []*pb.Maps_StringBarEntry) error
}

type MapsResolver

type MapsResolver interface {
	Int32Int32(ctx context.Context, obj *pb.Maps) ([]*pb.Maps_Int32Int32Entry, error)
	Int64Int64(ctx context.Context, obj *pb.Maps) ([]*pb.Maps_Int64Int64Entry, error)
	Uint32Uint32(ctx context.Context, obj *pb.Maps) ([]*pb.Maps_Uint32Uint32Entry, error)
	Uint64Uint64(ctx context.Context, obj *pb.Maps) ([]*pb.Maps_Uint64Uint64Entry, error)
	Sint32Sint32(ctx context.Context, obj *pb.Maps) ([]*pb.Maps_Sint32Sint32Entry, error)
	Sint64Sint64(ctx context.Context, obj *pb.Maps) ([]*pb.Maps_Sint64Sint64Entry, error)
	Fixed32Fixed32(ctx context.Context, obj *pb.Maps) ([]*pb.Maps_Fixed32Fixed32Entry, error)
	Fixed64Fixed64(ctx context.Context, obj *pb.Maps) ([]*pb.Maps_Fixed64Fixed64Entry, error)
	Sfixed32Sfixed32(ctx context.Context, obj *pb.Maps) ([]*pb.Maps_Sfixed32Sfixed32Entry, error)
	Sfixed64Sfixed64(ctx context.Context, obj *pb.Maps) ([]*pb.Maps_Sfixed64Sfixed64Entry, error)
	BoolBool(ctx context.Context, obj *pb.Maps) ([]*pb.Maps_BoolBoolEntry, error)
	StringString(ctx context.Context, obj *pb.Maps) ([]*pb.Maps_StringStringEntry, error)
	StringBytes(ctx context.Context, obj *pb.Maps) ([]*pb.Maps_StringBytesEntry, error)
	StringFloat(ctx context.Context, obj *pb.Maps) ([]*pb.Maps_StringFloatEntry, error)
	StringDouble(ctx context.Context, obj *pb.Maps) ([]*pb.Maps_StringDoubleEntry, error)
	StringFoo(ctx context.Context, obj *pb.Maps) ([]*pb.Maps_StringFooEntry, error)
	StringBar(ctx context.Context, obj *pb.Maps) ([]*pb.Maps_StringBarEntry, error)
}

type MutationResolver

type MutationResolver interface {
	ConstructsScalars(ctx context.Context, in *pb.Scalars) (*pb.Scalars, error)
	ConstructsRepeated(ctx context.Context, in *pb.Repeated) (*pb.Repeated, error)
	ConstructsMaps(ctx context.Context, in *pb.Maps) (*pb.Maps, error)
	ConstructsAny(ctx context.Context, in *anypb.Any) (*pb.Any, error)
	ConstructsEmpty(ctx context.Context) (*bool, error)
	ConstructsEmpty2(ctx context.Context) (*bool, error)
	ConstructsEmpty3(ctx context.Context) (*bool, error)
	ConstructsRef(ctx context.Context, in *pb.Ref) (*pb.Ref, error)
	ConstructsOneof(ctx context.Context, in *pb.Oneof) (*pb.Oneof, error)
	ConstructsCallWithID(ctx context.Context) (*bool, error)
}

type OneofInputResolver

type OneofInputResolver interface {
	Param2(ctx context.Context, obj *pb.Oneof, data *string) error
	Param3(ctx context.Context, obj *pb.Oneof, data *string) error
	Param4(ctx context.Context, obj *pb.Oneof, data *string) error
	Param5(ctx context.Context, obj *pb.Oneof, data *string) error
	Param6(ctx context.Context, obj *pb.Oneof, data *string) error
}

type OneofResolver

type OneofResolver interface {
	Oneof1(ctx context.Context, obj *pb.Oneof) (pb.Oneof_Oneof1, error)
	Oneof2(ctx context.Context, obj *pb.Oneof) (pb.Oneof_Oneof2, error)
	Oneof3(ctx context.Context, obj *pb.Oneof) (pb.Oneof_Oneof3, error)
}

type QueryResolver

type QueryResolver interface {
	Dummy(ctx context.Context) (*bool, error)
}

type ResolverRoot

type ResolverRoot interface {
	Maps() MapsResolver
	Mutation() MutationResolver
	Oneof() OneofResolver
	Query() QueryResolver
	MapsInput() MapsInputResolver
	OneofInput() OneofInputResolver
}

Jump to

Keyboard shortcuts

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