{"modulePath":"github.com/ColorPlatform/prism","version":"v0.31.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package proxy\n\n## Variables\n\n```go\nvar RequestInfo = abci.RequestInfo{\n\tVersion:      version.Version,\n\tBlockVersion: version.BlockProtocol.Uint64(),\n\tP2PVersion:   version.P2PProtocol.Uint64(),\n}\n```\nRequestInfo contains all the information for sending the abci.RequestInfo message during handshake with the app. It contains only compile-time version information.\n\n## Functions\n\n```go\nfunc NewAppConnConsensus(appConn abcicli.Client) *appConnConsensus\n```\n\n```go\nfunc NewAppConnMempool(appConn abcicli.Client) *appConnMempool\n```\n\n```go\nfunc NewAppConnQuery(appConn abcicli.Client) *appConnQuery\n```\n\n```go\nfunc NewMultiAppConn(clientCreator ClientCreator) *multiAppConn\n```\nMake all necessary abci connections to the application\n\n## Types\n\n```go\ntype AppConnConsensus interface {\n\tSetResponseCallback(abcicli.Callback)\n\tError() error\n\n\tInitChainSync(types.RequestInitChain) (*types.ResponseInitChain, error)\n\n\tBeginBlockSync(types.RequestBeginBlock) (*types.ResponseBeginBlock, error)\n\tDeliverTxAsync(tx []byte) *abcicli.ReqRes\n\tEndBlockSync(types.RequestEndBlock) (*types.ResponseEndBlock, error)\n\tCommitSync() (*types.ResponseCommit, error)\n}\n```\n\n```go\ntype AppConnMempool interface {\n\tSetResponseCallback(abcicli.Callback)\n\tError() error\n\n\tCheckTxAsync(tx []byte) *abcicli.ReqRes\n\n\tFlushAsync() *abcicli.ReqRes\n\tFlushSync() error\n}\n```\n\n```go\ntype AppConnQuery interface {\n\tError() error\n\n\tEchoSync(string) (*types.ResponseEcho, error)\n\tInfoSync(types.RequestInfo) (*types.ResponseInfo, error)\n\tQuerySync(types.RequestQuery) (*types.ResponseQuery, error)\n}\n```\n\n```go\ntype AppConns interface {\n\tcmn.Service\n\n\tMempool() AppConnMempool\n\tConsensus() AppConnConsensus\n\tQuery() AppConnQuery\n}\n```\nTendermint's interface to the application consists of multiple connections\n\n```go\nfunc NewAppConns(clientCreator ClientCreator) AppConns\n```\n\n```go\ntype ClientCreator interface {\n\tNewABCIClient() (abcicli.Client, error)\n}\n```\nNewABCIClient returns newly connected client\n\n```go\nfunc DefaultClientCreator(addr, transport, dbDir string) ClientCreator\n```\n\n```go\nfunc NewLocalClientCreator(app types.Application) ClientCreator\n```\n\n```go\nfunc NewRemoteClientCreator(addr, transport string, mustConnect bool) ClientCreator\n```\n\n","path":"github.com/ColorPlatform/prism/proxy","name":"proxy","synopsis":"","isRedistributable":true}
