graph

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 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 {
	Input struct {
		BlockNumber         func(childComplexity int) int
		EspressoBlockNumber func(childComplexity int) int
		EspressoTimestamp   func(childComplexity int) int
		Index               func(childComplexity int) int
		MsgSender           func(childComplexity int) int
		Notice              func(childComplexity int, index int) int
		Notices             func(childComplexity int, first *int, last *int, after *string, before *string) int
		Payload             func(childComplexity int) int
		Report              func(childComplexity int, index int) int
		Reports             func(childComplexity int, first *int, last *int, after *string, before *string) int
		Status              func(childComplexity int) int
		Timestamp           func(childComplexity int) int
		Voucher             func(childComplexity int, index int) int
		Vouchers            func(childComplexity int, first *int, last *int, after *string, before *string) int
	}

	InputConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	InputEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}

	Notice struct {
		Index   func(childComplexity int) int
		Input   func(childComplexity int) int
		Payload func(childComplexity int) int
		Proof   func(childComplexity int) int
	}

	NoticeConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	NoticeEdge struct {
		Cursor func(childComplexity int) int
		Node   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
	}

	Proof struct {
		FirstIndex                               func(childComplexity int) int
		InputByInputIndex                        func(childComplexity int) int
		InputIndex                               func(childComplexity int) int
		LastInput                                func(childComplexity int) int
		NodeID                                   func(childComplexity int) int
		OutputIndex                              func(childComplexity int) int
		ValidityInputIndexWithinEpoch            func(childComplexity int) int
		ValidityMachineStateHash                 func(childComplexity int) int
		ValidityOutputEpochRootHash              func(childComplexity int) int
		ValidityOutputHashInOutputHashesSiblings func(childComplexity int) int
		ValidityOutputHashesInEpochSiblings      func(childComplexity int) int
		ValidityOutputHashesRootHash             func(childComplexity int) int
		ValidityOutputIndexWithinInput           func(childComplexity int) int
	}

	Query struct {
		Input    func(childComplexity int, index int) int
		Inputs   func(childComplexity int, first *int, last *int, after *string, before *string, where *model.InputFilter) int
		Notice   func(childComplexity int, noticeIndex int, inputIndex int) int
		Notices  func(childComplexity int, first *int, last *int, after *string, before *string) int
		Report   func(childComplexity int, reportIndex int, inputIndex int) int
		Reports  func(childComplexity int, first *int, last *int, after *string, before *string) int
		Voucher  func(childComplexity int, voucherIndex int, inputIndex int) int
		Vouchers func(childComplexity int, first *int, last *int, after *string, before *string, filter []*model.ConvenientFilter) int
	}

	Report struct {
		Index   func(childComplexity int) int
		Input   func(childComplexity int) int
		Payload func(childComplexity int) int
	}

	ReportConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	ReportEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}

	Voucher struct {
		Destination func(childComplexity int) int
		Executed    func(childComplexity int) int
		Index       func(childComplexity int) int
		Input       func(childComplexity int) int
		Payload     func(childComplexity int) int
		Proof       func(childComplexity int) int
	}

	VoucherConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	VoucherEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}
}

type Config

type Config struct {
	Schema     *ast.Schema
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type InputResolver

type InputResolver interface {
	Voucher(ctx context.Context, obj *model.Input, index int) (*model.Voucher, error)
	Notice(ctx context.Context, obj *model.Input, index int) (*model.Notice, error)
	Report(ctx context.Context, obj *model.Input, index int) (*model.Report, error)
	Vouchers(ctx context.Context, obj *model.Input, first *int, last *int, after *string, before *string) (*model.Connection[*model.Voucher], error)
	Notices(ctx context.Context, obj *model.Input, first *int, last *int, after *string, before *string) (*model.Connection[*model.Notice], error)
	Reports(ctx context.Context, obj *model.Input, first *int, last *int, after *string, before *string) (*model.Connection[*model.Report], error)
}

type NoticeResolver

type NoticeResolver interface {
	Input(ctx context.Context, obj *model.Notice) (*model.Input, error)

	Proof(ctx context.Context, obj *model.Notice) (*model.Proof, error)
}

type QueryResolver

type QueryResolver interface {
	Input(ctx context.Context, index int) (*model.Input, error)
	Voucher(ctx context.Context, voucherIndex int, inputIndex int) (*model.Voucher, error)
	Notice(ctx context.Context, noticeIndex int, inputIndex int) (*model.Notice, error)
	Report(ctx context.Context, reportIndex int, inputIndex int) (*model.Report, error)
	Inputs(ctx context.Context, first *int, last *int, after *string, before *string, where *model.InputFilter) (*model.Connection[*model.Input], error)
	Vouchers(ctx context.Context, first *int, last *int, after *string, before *string, filter []*model.ConvenientFilter) (*model.Connection[*model.Voucher], error)
	Notices(ctx context.Context, first *int, last *int, after *string, before *string) (*model.Connection[*model.Notice], error)
	Reports(ctx context.Context, first *int, last *int, after *string, before *string) (*model.Connection[*model.Report], error)
}

type ReportResolver

type ReportResolver interface {
	Input(ctx context.Context, obj *model.Report) (*model.Input, error)
}

type ResolverRoot

type ResolverRoot interface {
	Input() InputResolver
	Notice() NoticeResolver
	Query() QueryResolver
	Report() ReportResolver
	Voucher() VoucherResolver
}

type VoucherResolver

type VoucherResolver interface {
	Input(ctx context.Context, obj *model.Voucher) (*model.Input, error)

	Proof(ctx context.Context, obj *model.Voucher) (*model.Proof, error)
}

Jump to

Keyboard shortcuts

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