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 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 } OutputValidityProof struct { InputIndexWithinEpoch func(childComplexity int) int MachineStateHash func(childComplexity int) int NoticesEpochRootHash func(childComplexity int) int OutputHashInOutputHashesSiblings func(childComplexity int) int OutputHashesInEpochSiblings func(childComplexity int) int OutputHashesRootHash func(childComplexity int) int OutputIndexWithinInput func(childComplexity int) int VouchersEpochRootHash 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 { Context func(childComplexity int) int Validity 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) 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 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 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) (*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 ResolverRoot ¶
type ResolverRoot interface { Input() InputResolver Notice() NoticeResolver Query() QueryResolver Report() ReportResolver Voucher() VoucherResolver }
Click to show internal directories.
Click to hide internal directories.