Documentation ¶
Index ¶
- Constants
- func AddChaincode(ccName string, cc shim.Chaincode)
- type LocalChain
- func (c *LocalChain) AddChaincode(ccName string, cc shim.Chaincode)
- func (c *LocalChain) BuildBlock()
- func (c *LocalChain) Caller(spec *client.RpcSpec) (rpc.Caller, error)
- func (c *LocalChain) Chain() (client.ChainInfo, error)
- func (c *LocalChain) GetBlock(i int64) (*client.ChainBlock, error)
- func (c *LocalChain) GetChain() (*client.Chain, error)
- func (c *LocalChain) GetTransaction(txid string) (*client.ChainTransaction, error)
- func (c *LocalChain) GetTxEvent(txid string) ([]*client.ChainTxEvents, error)
- func (c *LocalChain) Load(*viper.Viper) error
- func (c *LocalChain) Quit()
- type TxErrorParser
Constants ¶
View Source
const (
TxErrorEventName = "INVOKEERROR"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LocalChain ¶
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) 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
Click to show internal directories.
Click to hide internal directories.