replication

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLedgerReplicationRespIsNil = errors.New("ledger replication response is nil")
	ErrLedgerResponseBlocksIsNil  = errors.New("ledger response blocks is nil")
	ErrLedgerReplicationReqIsNil  = errors.New("ledger replication requests is nil")
	ErrInvalidSystemIdentifier    = errors.New("invalid system identifier")
	ErrNodeIdentifierIsMissing    = errors.New("node identifier is missing")
)

Functions

This section is empty.

Types

type LedgerReplicationRequest

type LedgerReplicationRequest struct {
	SystemIdentifier []byte
	NodeIdentifier   string
	BeginBlockNumber uint64
	EndBlockNumber   uint64
	// contains filtered or unexported fields
}

func (*LedgerReplicationRequest) IsValid added in v0.2.0

func (r *LedgerReplicationRequest) IsValid() error

type LedgerReplicationResponse

type LedgerReplicationResponse struct {
	Status  Status
	Message string
	Blocks  []*types.Block
	// contains filtered or unexported fields
}

func (*LedgerReplicationResponse) IsValid added in v0.2.0

func (r *LedgerReplicationResponse) IsValid() error

func (*LedgerReplicationResponse) Pretty added in v0.1.2

func (r *LedgerReplicationResponse) Pretty() string

type Status added in v0.2.0

type Status int
const (
	Ok Status = iota
	InvalidRequestParameters
	UnknownSystemIdentifier
	BlocksNotFound
	Unknown
)

func (Status) String added in v0.2.0

func (s Status) String() string

Jump to

Keyboard shortcuts

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