generated

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 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 {
	CloudEvent struct {
		Data            func(childComplexity int) int
		DataBase64      func(childComplexity int) int
		Datacontenttype func(childComplexity int) int
		Dataschema      func(childComplexity int) int
		EventgateAuth   func(childComplexity int) int
		ID              func(childComplexity int) int
		Source          func(childComplexity int) int
		Specversion     func(childComplexity int) int
		Subject         func(childComplexity int) int
		Time            func(childComplexity int) int
		Type            func(childComplexity int) int
	}

	Mutation struct {
		Request func(childComplexity int, input model.CloudEventInput) int
		Send    func(childComplexity int, input model.CloudEventInput) int
	}

	Query struct {
	}

	Subscription struct {
		Receive func(childComplexity int, input model.Filter) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

type MutationResolver interface {
	Send(ctx context.Context, input model.CloudEventInput) (*string, error)
	Request(ctx context.Context, input model.CloudEventInput) (*model.CloudEvent, error)
}

type ResolverRoot

type ResolverRoot interface {
	Mutation() MutationResolver
	Subscription() SubscriptionResolver
}

type SubscriptionResolver

type SubscriptionResolver interface {
	Receive(ctx context.Context, input model.Filter) (<-chan *model.CloudEvent, error)
}

Jump to

Keyboard shortcuts

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