client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TxErrorEventName = "INVOKEERROR"
)

Variables

This section is empty.

Functions

func AddChaincode

func AddChaincode(ccName string, cc shim.Chaincode)

Types

type LocalChain

type LocalChain struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*LocalChain) AddChaincode

func (c *LocalChain) AddChaincode(ccName string, cc shim.Chaincode)

func (*LocalChain) BuildBlock

func (c *LocalChain) BuildBlock()

func (*LocalChain) Caller

func (c *LocalChain) Caller(spec *client.RpcSpec) (rpc.Caller, error)

func (*LocalChain) Chain

func (c *LocalChain) Chain() (client.ChainInfo, error)

func (*LocalChain) GetBlock

func (c *LocalChain) GetBlock(i int64) (*client.ChainBlock, error)

func (*LocalChain) GetChain

func (c *LocalChain) GetChain() (*client.Chain, error)

chaininfo impl

func (*LocalChain) GetTransaction

func (c *LocalChain) GetTransaction(txid string) (*client.ChainTransaction, error)

func (*LocalChain) GetTxEvent

func (c *LocalChain) GetTxEvent(txid string) ([]*client.ChainTxEvents, error)

func (*LocalChain) Load

func (c *LocalChain) Load(*viper.Viper) error

func (*LocalChain) Quit

func (c *LocalChain) Quit()

type TxErrorParser

type TxErrorParser string

func (TxErrorParser) Detail

func (s TxErrorParser) Detail(msg proto.Message) interface{}

func (TxErrorParser) Msg

func (TxErrorParser) Msg() proto.Message

Jump to

Keyboard shortcuts

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