storage

package
v0.31.7 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: AGPL-3.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

View Source
const (
	FINAL  = "final"
	SEALED = "sealed"
)

Variables

View Source
var Max_Height_Range = uint64(1000)

max number of block height to query transactions from

Functions

func NewReadBlocksCommand

func NewReadBlocksCommand(state protocol.State, storage storage.Blocks) commands.AdminCommand

func NewReadRangeBlocksCommand added in v0.31.7

func NewReadRangeBlocksCommand(blocks storage.Blocks) commands.AdminCommand

func NewReadRangeClusterBlocksCommand added in v0.31.7

func NewReadRangeClusterBlocksCommand(db *badger.DB, headers *storage.Headers, payloads *storage.ClusterPayloads) commands.AdminCommand

func NewReadResultsCommand

func NewReadResultsCommand(state protocol.State, storage storage.ExecutionResults) commands.AdminCommand

func NewReadSealsCommand

func NewReadSealsCommand(state protocol.State, storage storage.Seals, index storage.Index) commands.AdminCommand

Types

type GetTransactionsCommand added in v0.27.0

type GetTransactionsCommand struct {
	// contains filtered or unexported fields
}

func NewGetTransactionsCommand added in v0.27.0

func NewGetTransactionsCommand(state protocol.State, payloads storage.Payloads, collections storage.Collections) *GetTransactionsCommand

func (*GetTransactionsCommand) Handler added in v0.27.0

func (c *GetTransactionsCommand) Handler(ctx context.Context, req *admin.CommandRequest) (interface{}, error)

func (*GetTransactionsCommand) Validator added in v0.27.0

func (c *GetTransactionsCommand) Validator(req *admin.CommandRequest) error

Validator validates the request. Returns admin.InvalidAdminReqError for invalid/malformed requests.

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

Validator validates the request. Returns admin.InvalidAdminReqError for invalid/malformed requests.

type ReadRangeBlocksCommand added in v0.31.7

type ReadRangeBlocksCommand struct {
	// contains filtered or unexported fields
}

func (*ReadRangeBlocksCommand) Handler added in v0.31.7

func (c *ReadRangeBlocksCommand) Handler(ctx context.Context, req *admin.CommandRequest) (interface{}, error)

func (*ReadRangeBlocksCommand) Validator added in v0.31.7

func (c *ReadRangeBlocksCommand) Validator(req *admin.CommandRequest) error

type ReadRangeClusterBlocksCommand added in v0.31.7

type ReadRangeClusterBlocksCommand struct {
	// contains filtered or unexported fields
}

func (*ReadRangeClusterBlocksCommand) Handler added in v0.31.7

func (c *ReadRangeClusterBlocksCommand) Handler(ctx context.Context, req *admin.CommandRequest) (interface{}, error)

func (*ReadRangeClusterBlocksCommand) Validator added in v0.31.7

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

Validator validates the request. Returns admin.InvalidAdminReqError for invalid/malformed requests.

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

Validator validates the request. Returns admin.InvalidAdminReqError for invalid/malformed requests.

Jump to

Keyboard shortcuts

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