Documentation
¶
Index ¶
- type InmemAppProxy
- func (p *InmemAppProxy) CommitBlock(block hashgraph.Block) (stateHash []byte, err error)
- func (p *InmemAppProxy) GetCommittedTransactions() [][]byte
- func (p *InmemAppProxy) GetSnapshot(blockIndex int) (snapshot []byte, err error)
- func (p *InmemAppProxy) Restore(snapshot []byte) error
- func (p *InmemAppProxy) SubmitCh() chan []byte
- func (p *InmemAppProxy) SubmitTx(tx []byte)
- type SocketAppProxy
- type SocketAppProxyClient
- type SocketAppProxyServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InmemAppProxy ¶
type InmemAppProxy struct {
// contains filtered or unexported fields
}
InmemProxy is used for testing
func NewInmemAppProxy ¶
func NewInmemAppProxy(logger *logrus.Logger) *InmemAppProxy
func (*InmemAppProxy) CommitBlock ¶
func (p *InmemAppProxy) CommitBlock(block hashgraph.Block) (stateHash []byte, err error)
func (*InmemAppProxy) GetCommittedTransactions ¶
func (p *InmemAppProxy) GetCommittedTransactions() [][]byte
func (*InmemAppProxy) GetSnapshot ¶
func (p *InmemAppProxy) GetSnapshot(blockIndex int) (snapshot []byte, err error)
func (*InmemAppProxy) Restore ¶
func (p *InmemAppProxy) Restore(snapshot []byte) error
func (*InmemAppProxy) SubmitCh ¶
func (p *InmemAppProxy) SubmitCh() chan []byte
func (*InmemAppProxy) SubmitTx ¶
func (p *InmemAppProxy) SubmitTx(tx []byte)
type SocketAppProxy ¶
type SocketAppProxy struct {
// contains filtered or unexported fields
}
func NewSocketAppProxy ¶
func (*SocketAppProxy) CommitBlock ¶
func (p *SocketAppProxy) CommitBlock(block hashgraph.Block) ([]byte, error)
func (*SocketAppProxy) GetSnapshot ¶
func (p *SocketAppProxy) GetSnapshot(blockIndex int) ([]byte, error)
func (*SocketAppProxy) Restore ¶
func (p *SocketAppProxy) Restore(snapshot []byte) error
func (*SocketAppProxy) SubmitCh ¶
func (p *SocketAppProxy) SubmitCh() chan []byte
type SocketAppProxyClient ¶
type SocketAppProxyClient struct {
// contains filtered or unexported fields
}
func NewSocketAppProxyClient ¶
func (*SocketAppProxyClient) CommitBlock ¶
func (p *SocketAppProxyClient) CommitBlock(block hashgraph.Block) ([]byte, error)
func (*SocketAppProxyClient) GetSnapshot ¶
func (p *SocketAppProxyClient) GetSnapshot(blockIndex int) ([]byte, error)
func (*SocketAppProxyClient) Restore ¶
func (p *SocketAppProxyClient) Restore(snapshot []byte) error
type SocketAppProxyServer ¶
type SocketAppProxyServer struct {
// contains filtered or unexported fields
}
func NewSocketAppProxyServer ¶
func NewSocketAppProxyServer(bindAddress string, logger *logrus.Logger) *SocketAppProxyServer
Click to show internal directories.
Click to hide internal directories.