Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commit ¶
type Commit struct {
Block hashgraph.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 SnapshotRequest ¶
type SnapshotRequest struct {
BlockIndex int
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.
type SocketBabbleProxy ¶
type SocketBabbleProxy struct {
// contains filtered or unexported fields
}
func NewSocketBabbleProxy ¶
func (*SocketBabbleProxy) CommitCh ¶
func (p *SocketBabbleProxy) CommitCh() chan Commit
func (*SocketBabbleProxy) RestoreCh ¶
func (p *SocketBabbleProxy) RestoreCh() chan RestoreRequest
func (*SocketBabbleProxy) SnapshotRequestCh ¶
func (p *SocketBabbleProxy) SnapshotRequestCh() chan SnapshotRequest
func (*SocketBabbleProxy) SubmitTx ¶
func (p *SocketBabbleProxy) SubmitTx(tx []byte) error
type SocketBabbleProxyClient ¶
type SocketBabbleProxyClient struct {
// contains filtered or unexported fields
}
func NewSocketBabbleProxyClient ¶
func NewSocketBabbleProxyClient(nodeAddr string, timeout time.Duration) *SocketBabbleProxyClient
type SocketBabbleProxyServer ¶
type SocketBabbleProxyServer struct {
// contains filtered or unexported fields
}
func (*SocketBabbleProxyServer) CommitBlock ¶
func (p *SocketBabbleProxyServer) CommitBlock(block hashgraph.Block, stateHash *StateHash) (err error)
func (*SocketBabbleProxyServer) GetSnapshot ¶
func (p *SocketBabbleProxyServer) GetSnapshot(blockIndex int, snapshot *Snapshot) (err error)
Click to show internal directories.
Click to hide internal directories.