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 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 ResolverRoot ¶
type ResolverRoot interface {
Input() InputResolver
Notice() NoticeResolver
Query() QueryResolver
Report() ReportResolver
Voucher() VoucherResolver
}
Click to show internal directories.
Click to hide internal directories.