proxy

package
v0.30.1-binance.4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RequestInfo = abci.RequestInfo{
	Version:      version.Version,
	BlockVersion: version.BlockProtocol.Uint64(),
	P2PVersion:   version.P2PProtocol.Uint64(),
}

RequestInfo contains all the information for sending the abci.RequestInfo message during handshake with the app. It contains only compile-time version information.

Functions

func NewAppConnConsensus added in v0.7.1

func NewAppConnConsensus(appConn abcicli.Client) *appConnConsensus

func NewAppConnMempool added in v0.7.1

func NewAppConnMempool(appConn abcicli.Client) *appConnMempool

func NewAppConnQuery added in v0.7.1

func NewAppConnQuery(appConn abcicli.Client) *appConnQuery

func NewAppConnState

func NewAppConnState(appConn abcicli.Client) *appConnState

func NewMultiAppConn added in v0.7.1

func NewMultiAppConn(clientCreator ClientCreator) *multiAppConn

Make all necessary abci connections to the application

Types

type AppConnConsensus added in v0.7.1

type AppConnConsensus interface {
	SetResponseCallback(abcicli.Callback)
	Error() error

	InitChainSync(types.RequestInitChain) (*types.ResponseInitChain, error)

	BeginBlockSync(types.RequestBeginBlock) (*types.ResponseBeginBlock, error)
	DeliverTxAsync(tx []byte) *abcicli.ReqRes
	EndBlockSync(types.RequestEndBlock) (*types.ResponseEndBlock, error)
	CommitSync() (*types.ResponseCommit, error)
}

type AppConnMempool added in v0.7.1

type AppConnMempool interface {
	SetResponseCallback(abcicli.Callback)
	Error() error

	CheckTxAsync(tx []byte) *abcicli.ReqRes
	ReCheckTxAsync(tx []byte) *abcicli.ReqRes

	FlushAsync() *abcicli.ReqRes
	FlushSync() error
}

type AppConnQuery added in v0.7.1

type AppConnQuery interface {
	Error() error

	EchoSync(string) (*types.ResponseEcho, error)
	InfoSync(types.RequestInfo) (*types.ResponseInfo, error)
	QuerySync(types.RequestQuery) (*types.ResponseQuery, error)
}

type AppConnState

type AppConnState interface {
	SetResponseCallback(abcicli.Callback)
	Error() error

	LatestSnapshot() (height int64, numKeys []int64, err error)
	ReadSnapshotChunk(height int64, startIndex, endIndex int64) (chunk [][]byte, err error)
	StartRecovery(height int64, numKeys []int64) error
	WriteRecoveryChunk(chunk [][]byte) error
	EndRecovery(height int64) error
}

type AppConns added in v0.7.1

type AppConns interface {
	cmn.Service

	State() AppConnState
	Mempool() AppConnMempool
	Consensus() AppConnConsensus
	Query() AppConnQuery
}

Tendermint's interface to the application consists of multiple connections

func NewAppConns added in v0.7.1

func NewAppConns(clientCreator ClientCreator) AppConns

type ClientCreator added in v0.7.1

type ClientCreator interface {
	NewABCIClient() (abcicli.Client, error)
}

NewABCIClient returns newly connected client

func DefaultClientCreator added in v0.7.1

func DefaultClientCreator(addr, transport, dbDir string) ClientCreator

func NewLocalClientCreator added in v0.7.1

func NewLocalClientCreator(app types.Application) ClientCreator

func NewRemoteClientCreator added in v0.7.1

func NewRemoteClientCreator(addr, transport string, mustConnect bool) ClientCreator

Jump to

Keyboard shortcuts

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