tendermint: github.com/tendermint/tendermint/proxy Index | Files

package proxy

import "github.com/tendermint/tendermint/proxy"

Index

Package Files

app_conn.go client.go multi_app_conn.go version.go

Variables

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.

func NewAppConnConsensus Uses

func NewAppConnConsensus(appConn abcicli.Client) *appConnConsensus

func NewAppConnMempool Uses

func NewAppConnMempool(appConn abcicli.Client) *appConnMempool

func NewAppConnQuery Uses

func NewAppConnQuery(appConn abcicli.Client) *appConnQuery

func NewMultiAppConn Uses

func NewMultiAppConn(clientCreator ClientCreator) *multiAppConn

Make all necessary abci connections to the application

type AppConnConsensus Uses

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

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

    BeginBlockSync(types.RequestBeginBlock) (*types.ResponseBeginBlock, error)
    DeliverTxAsync(types.RequestDeliverTx) *abcicli.ReqRes
    EndBlockSync(types.RequestEndBlock) (*types.ResponseEndBlock, error)
    CommitSync() (*types.ResponseCommit, error)
}

type AppConnMempool Uses

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

    CheckTxAsync(types.RequestCheckTx) *abcicli.ReqRes

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

type AppConnQuery Uses

type AppConnQuery interface {
    Error() error

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

type AppConns Uses

type AppConns interface {
    cmn.Service

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

Tendermint's interface to the application consists of multiple connections

func NewAppConns Uses

func NewAppConns(clientCreator ClientCreator) AppConns

type ClientCreator Uses

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

NewABCIClient returns newly connected client

func DefaultClientCreator Uses

func DefaultClientCreator(addr, transport, dbDir string) ClientCreator

func NewLocalClientCreator Uses

func NewLocalClientCreator(app types.Application) ClientCreator

func NewRemoteClientCreator Uses

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

Package proxy imports 8 packages (graph) and is imported by 69 packages. Updated 2019-09-10. Refresh now. Tools for package owners.