generated

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: Apache-2.0 Imports: 11 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 {
	FileNode struct {
		Children    func(childComplexity int) int
		Description func(childComplexity int) int
		ID          func(childComplexity int) int
		IsFolder    func(childComplexity int) int
		MimeType    func(childComplexity int) int
		Name        func(childComplexity int) int
		Size        func(childComplexity int) int
		State       func(childComplexity int) int
	}

	Mutation struct {
		CreateFileNode func(childComplexity int, meta dto.CreateFileNode) int
		RemoveFileNode func(childComplexity int, id string) int
		UpdateFileNode func(childComplexity int, id string, newMeta dto.UpdateFileNode) int
	}

	Query struct {
		GetFileNode func(childComplexity int, path string) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

type MutationResolver interface {
	CreateFileNode(ctx context.Context, meta dto.CreateFileNode) (*dto.FileNode, error)
	RemoveFileNode(ctx context.Context, id string) (string, error)
	UpdateFileNode(ctx context.Context, id string, newMeta dto.UpdateFileNode) (*dto.FileNode, error)
}

type QueryResolver

type QueryResolver interface {
	GetFileNode(ctx context.Context, path string) (*dto.FileNode, error)
}

type ResolverRoot

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

Jump to

Keyboard shortcuts

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