proxy

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAppConnConsensus added in v0.9.2

func NewAppConnConsensus(appConn tmspcli.Client) *appConnConsensus

func NewAppConnMempool added in v0.9.2

func NewAppConnMempool(appConn tmspcli.Client) *appConnMempool

func NewAppConnQuery added in v0.9.2

func NewAppConnQuery(appConn tmspcli.Client) *appConnQuery

func NewMultiAppConn added in v0.9.2

func NewMultiAppConn(config cfg.Config, clientCreator ClientCreator, state State, blockStore BlockStore) *multiAppConn

Make all necessary tmsp connections to the application

Types

type AppConnConsensus added in v0.9.2

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

	InitChainSync(validators []*types.Validator) (err error)

	BeginBlockSync(height uint64) (err error)
	AppendTxAsync(tx []byte) *tmspcli.ReqRes
	EndBlockSync(height uint64) (changedValidators []*types.Validator, err error)
	CommitSync() (res types.Result)
}

type AppConnMempool added in v0.9.2

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

	CheckTxAsync(tx []byte) *tmspcli.ReqRes

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

type AppConnQuery added in v0.9.2

type AppConnQuery interface {
	Error() error

	EchoSync(string) (res types.Result)
	InfoSync() (res types.Result)
	QuerySync(tx []byte) (res types.Result)
}

type AppConns added in v0.9.2

type AppConns interface {
	Mempool() AppConnMempool
	Consensus() AppConnConsensus
	Query() AppConnQuery
}

Tendermint's interface to the application consists of multiple connections

func NewAppConns added in v0.9.2

func NewAppConns(config cfg.Config, clientCreator ClientCreator, state State, blockStore BlockStore) AppConns

type BlockStore

type BlockStore interface {
}

type ClientCreator added in v0.9.2

type ClientCreator interface {
	NewTMSPClient() (tmspcli.Client, error)
}

NewTMSPClient returns newly connected client

func DefaultClientCreator added in v0.9.2

func DefaultClientCreator(config cfg.Config) ClientCreator

func NewLocalClientCreator added in v0.9.2

func NewLocalClientCreator(app types.Application) ClientCreator

func NewRemoteClientCreator added in v0.9.2

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

type State

type State interface {
}

Jump to

Keyboard shortcuts

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