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

func NewAppConnConsensus(appConn tmspcli.Client) *appConnConsensus

func NewAppConnMempool

func NewAppConnMempool(appConn tmspcli.Client) *appConnMempool

func NewAppConnQuery

func NewAppConnQuery(appConn tmspcli.Client) *appConnQuery

func NewMultiAppConn

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

Make all necessary tmsp connections to the application

Types

type AppConnConsensus

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

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

	CheckTxAsync(tx []byte) *tmspcli.ReqRes

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

type AppConnQuery

type AppConnQuery interface {
	Error() error

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

type AppConns

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

Tendermint's interface to the application consists of multiple connections

func NewAppConns

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

type BlockStore added in v0.7.1

type BlockStore interface {
}

type ClientCreator

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

NewTMSPClient returns newly connected client

func DefaultClientCreator

func DefaultClientCreator(config cfg.Config) ClientCreator

func NewLocalClientCreator

func NewLocalClientCreator(app types.Application) ClientCreator

func NewRemoteClientCreator

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

type State added in v0.7.1

type State interface {
}

Jump to

Keyboard shortcuts

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