proto

package
v0.0.0-...-168a2c3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: MIT Imports: 1 Imported by: 0

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.

func (*Commit) Respond

func (r *Commit) Respond(stateHash []byte, err error)

Respond is used to respond with a response, error or both

type CommitResponse

type CommitResponse struct {
	StateHash []byte
	Error     error
}

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

type RestoreResponse struct {
	StateHash []byte
	Error     error
}

------------------------------------------------------------------------------ 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

type SnapshotResponse struct {
	Snapshot []byte
	Error    error
}

SnapshotResponse captures both a response and a potential error.

type StateHash

type StateHash struct {
	Hash []byte
}

Jump to

Keyboard shortcuts

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