generated

package
v0.0.0-...-3d09e97 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 15 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 {
	HTTPHeader struct {
		Key   func(childComplexity int) int
		Value func(childComplexity int) int
	}

	PageInfo struct {
		EndCursor       func(childComplexity int) int
		HasNextPage     func(childComplexity int) int
		HasPreviousPage func(childComplexity int) int
		StartCursor     func(childComplexity int) int
	}

	Query struct {
		Webhook  func(childComplexity int, id string) int
		Webhooks func(childComplexity int, after *string, before *string, first *uint, last *uint, filter json.RawMessage) int
	}

	Webhook struct {
		Attempts       func(childComplexity int) int
		Body           func(childComplexity int) int
		CreatedAt      func(childComplexity int) int
		Headers        func(childComplexity int) int
		ID             func(childComplexity int) int
		LastStatusCode func(childComplexity int) int
		Method         func(childComplexity int) int
		Timeout        func(childComplexity int) int
		URL            func(childComplexity int) int
		UpdatedAt      func(childComplexity int) int
	}

	WebhookAttempt struct {
		Body        func(childComplexity int) int
		CreatedAt   func(childComplexity int) int
		ElapsedTime func(childComplexity int) int
		Headers     func(childComplexity int) int
		StatusCode  func(childComplexity int) int
	}

	WebhookConnection struct {
		Nodes      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
	Validate func(ctx context.Context, obj interface{}, next graphql.Resolver, rule string) (res interface{}, err error)
}

type QueryResolver

type QueryResolver interface {
	Webhooks(ctx context.Context, after *string, before *string, first *uint, last *uint, filter json.RawMessage) (*model.WebhookConnection, error)
	Webhook(ctx context.Context, id string) (*model.Webhook, error)
}

type ResolverRoot

type ResolverRoot interface {
	Query() QueryResolver
}

Jump to

Keyboard shortcuts

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