Documentation ¶
Index ¶
- Constants
- Variables
- func NewReadBlocksCommand(state protocol.State, storage storage.Blocks) commands.AdminCommand
- func NewReadResultsCommand(state protocol.State, storage storage.ExecutionResults) commands.AdminCommand
- func NewReadSealsCommand(state protocol.State, storage storage.Seals, index storage.Index) commands.AdminCommand
- type ReadBlocksCommand
- type ReadResultsCommand
- type ReadSealsCommand
Constants ¶
View Source
const ( FINAL = "final" SEALED = "sealed" )
Variables ¶
View Source
var ErrValidatorReqDataFormat error = errors.New("wrong input format: expected JSON")
Functions ¶
func NewReadBlocksCommand ¶
func NewReadResultsCommand ¶
func NewReadResultsCommand(state protocol.State, storage storage.ExecutionResults) commands.AdminCommand
func NewReadSealsCommand ¶
Types ¶
type ReadBlocksCommand ¶
type ReadBlocksCommand struct {
// contains filtered or unexported fields
}
func (*ReadBlocksCommand) Handler ¶
func (r *ReadBlocksCommand) Handler(ctx context.Context, req *admin.CommandRequest) (interface{}, error)
func (*ReadBlocksCommand) Validator ¶
func (r *ReadBlocksCommand) Validator(req *admin.CommandRequest) error
type ReadResultsCommand ¶
type ReadResultsCommand struct {
// contains filtered or unexported fields
}
func (*ReadResultsCommand) Handler ¶
func (r *ReadResultsCommand) Handler(ctx context.Context, req *admin.CommandRequest) (interface{}, error)
func (*ReadResultsCommand) Validator ¶
func (r *ReadResultsCommand) Validator(req *admin.CommandRequest) error
type ReadSealsCommand ¶
type ReadSealsCommand struct {
// contains filtered or unexported fields
}
func (*ReadSealsCommand) Handler ¶
func (r *ReadSealsCommand) Handler(ctx context.Context, req *admin.CommandRequest) (interface{}, error)
func (*ReadSealsCommand) Validator ¶
func (r *ReadSealsCommand) Validator(req *admin.CommandRequest) error
Click to show internal directories.
Click to hide internal directories.