generated

package
v0.0.0-...-54b0228 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: GPL-3.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 ChanResolver

type ChanResolver interface {
	Status(ctx context.Context, obj *ent.RuleChan) (*model.ChanStatus, error)
	CreatedAt(ctx context.Context, obj *ent.RuleChan) (*string, error)
	UpdatedAt(ctx context.Context, obj *ent.RuleChan) (*string, error)
}

type ComplexityRoot

type ComplexityRoot struct {
	Chan struct {
		CreatedAt   func(childComplexity int) int
		Description func(childComplexity int) int
		ID          func(childComplexity int) int
		Infinite    func(childComplexity int) int
		Name        func(childComplexity int) int
		RootNode    func(childComplexity int) int
		Status      func(childComplexity int) int
		UpdatedAt   func(childComplexity int) int
	}

	ListChan struct {
		List  func(childComplexity int) int
		Total func(childComplexity int) int
	}

	Mutation struct {
		CreateChan         func(childComplexity int, input model.InputChan) int
		DeleteChan         func(childComplexity int, id uint64) int
		UpdateChan         func(childComplexity int, id uint64, input model.InputChan) int
		UpdateRootNodeChan func(childComplexity int, id uint64, rootNode string) int
		UpdateStatusChan   func(childComplexity int, input model.SetStatusChan) int
		Version            func(childComplexity int) int
	}

	Query struct {
		GetChan  func(childComplexity int, id uint64) int
		ListChan func(childComplexity int, input models.ListChanRequest) int
		Version  func(childComplexity int) int
	}

	Version struct {
		Version func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

type MutationResolver interface {
	Version(ctx context.Context) (*model.Version, error)
	CreateChan(ctx context.Context, input model.InputChan) (bool, error)
	UpdateChan(ctx context.Context, id uint64, input model.InputChan) (bool, error)
	UpdateStatusChan(ctx context.Context, input model.SetStatusChan) (bool, error)
	UpdateRootNodeChan(ctx context.Context, id uint64, rootNode string) (bool, error)
	DeleteChan(ctx context.Context, id uint64) (bool, error)
}

type QueryResolver

type QueryResolver interface {
	Version(ctx context.Context) (*model.Version, error)
	ListChan(ctx context.Context, input models.ListChanRequest) (*model.ListChan, error)
	GetChan(ctx context.Context, id uint64) (*ent.RuleChan, error)
}

type ResolverRoot

type ResolverRoot interface {
	Chan() ChanResolver
	Mutation() MutationResolver
	Query() QueryResolver
}

Jump to

Keyboard shortcuts

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