generated

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MIT Imports: 10 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 {
	Ancon721Metadata struct {
		Description func(childComplexity int) int
		Image       func(childComplexity int) int
		Name        func(childComplexity int) int
		Owner       func(childComplexity int) int
		Parent      func(childComplexity int) int
		Sources     func(childComplexity int) int
	}

	DagContractTrusted struct {
		Data    func(childComplexity int) int
		Payload func(childComplexity int) int
	}

	DagLink struct {
		Cid  func(childComplexity int) int
		Path func(childComplexity int) int
	}

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

	Transaction struct {
		Metadata func(childComplexity int, tx model.MetadataTransactionInput) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
	FocusedTransform func(ctx context.Context, obj interface{}, next graphql.Resolver, cid string, path string, previousValue string, value string) (res interface{}, err error)
}

type QueryResolver

type QueryResolver interface {
	Metadata(ctx context.Context, cid string, path string) (*model.Ancon721Metadata, error)
}

type ResolverRoot

type ResolverRoot interface {
	Query() QueryResolver
	Transaction() TransactionResolver
}

type TransactionResolver

type TransactionResolver interface {
	Metadata(ctx context.Context, tx model.MetadataTransactionInput) (*model.DagLink, error)
}

Jump to

Keyboard shortcuts

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