Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commit ¶
type Commit struct { Block poset.Block RespChan chan<- CommitResponse }
Commit provides a response mechanism.
type CommitResponse ¶
CommitResponse captures both a response and a potential error.
type RestoreRequest ¶
type RestoreRequest struct { Snapshot []byte RespChan chan<- RestoreResponse }
RestoreRequest provides a response mechanism.
func (*RestoreRequest) Respond ¶
func (r *RestoreRequest) Respond(snapshot []byte, err error)
Respond is used to respond with a response, error or both
type RestoreResponse ¶
------------------------------------------------------------------------------ RestoreResponse captures both an error.
type Snapshot ¶
type Snapshot struct {
Bytes []byte
}
------------------------------------------------------------------------------
type SnapshotRequest ¶
type SnapshotRequest struct { BlockIndex int64 RespChan chan<- SnapshotResponse }
SnapshotRequest provides a response mechanism.
func (*SnapshotRequest) Respond ¶
func (r *SnapshotRequest) Respond(snapshot []byte, err error)
Respond is used to respond with a response, error or both
type SnapshotResponse ¶
SnapshotResponse captures both a response and a potential error.
Click to show internal directories.
Click to hide internal directories.