generated

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 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 {
	EventDetail struct {
		Channel  func(childComplexity int) int
		Claims   func(childComplexity int) int
		Data     func(childComplexity int) int
		ID       func(childComplexity int) int
		Metadata func(childComplexity int) int
		Time     func(childComplexity int) int
	}

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

	Query struct {
		History func(childComplexity int, input model.HistoryOpts) int
	}

	Subscription struct {
		Receive func(childComplexity int, input model.ReceiveOpts) 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.Event) (*string, error)
}

type QueryResolver added in v0.0.17

type QueryResolver interface {
	History(ctx context.Context, input model.HistoryOpts) ([]*model.EventDetail, error)
}

type ResolverRoot

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

type SubscriptionResolver

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

Jump to

Keyboard shortcuts

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