Documentation ¶
Index ¶
- func DecodeRPCResult(msg proto.Message, r []byte) error
- func EncodeRPCResult(msg proto.Message) ([]byte, error)
- type Caller
- type ChaincodeAdapter
- func (c *ChaincodeAdapter) DefaultTxID()
- func (c *ChaincodeAdapter) Deploy(method string, arg [][]byte) (string, error)
- func (c *ChaincodeAdapter) Invoke(method string, arg [][]byte) (string, error)
- func (c *ChaincodeAdapter) Query(method string, arg [][]byte) ([]byte, error)
- func (c *ChaincodeAdapter) SpecifyTxID(txid string)
- type DummyCallerBuilder
- func (d *DummyCallerBuilder) AppendPreHandler(h tx.TxPreHandler) error
- func (d *DummyCallerBuilder) GetCaller(txid string, h tx.TxHandler) Caller
- func (d *DummyCallerBuilder) GetQueryer(h tx.TxHandler) Caller
- func (c DummyCallerBuilder) Invoke(stub shim.ChaincodeStubInterface, function string, args [][]byte, _ bool) ([]byte, error)
- func (d *DummyCallerBuilder) NewTxID(txid string)
- func (d *DummyCallerBuilder) Reset()
- func (d *DummyCallerBuilder) Stub() *shim.MockStub
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChaincodeAdapter ¶
func NewLocalChaincode ¶
func NewLocalChaincode(cc shim.Chaincode) *ChaincodeAdapter
func (*ChaincodeAdapter) DefaultTxID ¶
func (c *ChaincodeAdapter) DefaultTxID()
func (*ChaincodeAdapter) Deploy ¶
func (c *ChaincodeAdapter) Deploy(method string, arg [][]byte) (string, error)
func (*ChaincodeAdapter) Invoke ¶
func (c *ChaincodeAdapter) Invoke(method string, arg [][]byte) (string, error)
func (*ChaincodeAdapter) Query ¶
func (c *ChaincodeAdapter) Query(method string, arg [][]byte) ([]byte, error)
func (*ChaincodeAdapter) SpecifyTxID ¶
func (c *ChaincodeAdapter) SpecifyTxID(txid string)
type DummyCallerBuilder ¶
type DummyCallerBuilder struct { CCName string // contains filtered or unexported fields }
func (*DummyCallerBuilder) AppendPreHandler ¶
func (d *DummyCallerBuilder) AppendPreHandler(h tx.TxPreHandler) error
func (*DummyCallerBuilder) GetCaller ¶
func (d *DummyCallerBuilder) GetCaller(txid string, h tx.TxHandler) Caller
func (*DummyCallerBuilder) GetQueryer ¶
func (d *DummyCallerBuilder) GetQueryer(h tx.TxHandler) Caller
func (*DummyCallerBuilder) NewTxID ¶
func (d *DummyCallerBuilder) NewTxID(txid string)
func (*DummyCallerBuilder) Reset ¶
func (d *DummyCallerBuilder) Reset()
func (*DummyCallerBuilder) Stub ¶
func (d *DummyCallerBuilder) Stub() *shim.MockStub
Click to show internal directories.
Click to hide internal directories.