Documentation ¶
Index ¶
- type IdentityClient
- type RPCClient
- func (_m *RPCClient) Close() error
- func (_m *RPCClient) Invoke(channelID string, signer string, chaincodeName string, method string, ...) (*client.TxReceipt, error)
- func (_m *RPCClient) Query(channelID string, signer string, chaincodeName string, method string, ...) ([]byte, error)
- func (_m *RPCClient) QueryBlock(channelID string, signer string, blocknumber uint64, blockhash []byte) (*utils.RawBlock, *utils.Block, error)
- func (_m *RPCClient) QueryBlockByTxID(channelID string, signer string, txID string) (*utils.RawBlock, *utils.Block, error)
- func (_m *RPCClient) QueryChainInfo(channelID string, signer string) (*fab.BlockchainInfoResponse, error)
- func (_m *RPCClient) QueryTransaction(channelID string, signer string, txID string) (map[string]interface{}, error)
- func (_m *RPCClient) SubscribeEvent(subInfo *api.SubscriptionInfo, since uint64) (*client.RegistrationWrapper, <-chan *fab.BlockEvent, <-chan *fab.CCEvent, ...)
- func (_m *RPCClient) Unregister(_a0 *client.RegistrationWrapper)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdentityClient ¶
IdentityClient is an autogenerated mock type for the IdentityClient type
func NewIdentityClient ¶ added in v0.9.18
func NewIdentityClient(t interface { mock.TestingT Cleanup(func()) }) *IdentityClient
NewIdentityClient creates a new instance of IdentityClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*IdentityClient) AddSignerUpdateListener ¶ added in v0.9.15
func (_m *IdentityClient) AddSignerUpdateListener(_a0 client.SignerUpdateListener)
AddSignerUpdateListener provides a mock function with given fields: _a0
func (*IdentityClient) GetClientOrg ¶
func (_m *IdentityClient) GetClientOrg() string
GetClientOrg provides a mock function with given fields:
func (*IdentityClient) GetSigningIdentity ¶
func (_m *IdentityClient) GetSigningIdentity(name string) (msp.SigningIdentity, error)
GetSigningIdentity provides a mock function with given fields: name
type RPCClient ¶
RPCClient is an autogenerated mock type for the RPCClient type
func NewRPCClient ¶ added in v0.9.18
NewRPCClient creates a new instance of RPCClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RPCClient) Invoke ¶
func (_m *RPCClient) Invoke(channelID string, signer string, chaincodeName string, method string, args []string, transientMap map[string]string, isInit bool) (*client.TxReceipt, error)
Invoke provides a mock function with given fields: channelID, signer, chaincodeName, method, args, transientMap, isInit
func (*RPCClient) Query ¶
func (_m *RPCClient) Query(channelID string, signer string, chaincodeName string, method string, args []string, strongread bool) ([]byte, error)
Query provides a mock function with given fields: channelID, signer, chaincodeName, method, args, strongread
func (*RPCClient) QueryBlock ¶ added in v0.9.6
func (_m *RPCClient) QueryBlock(channelID string, signer string, blocknumber uint64, blockhash []byte) (*utils.RawBlock, *utils.Block, error)
QueryBlock provides a mock function with given fields: channelID, signer, blocknumber, blockhash
func (*RPCClient) QueryBlockByTxID ¶ added in v0.9.18
func (_m *RPCClient) QueryBlockByTxID(channelID string, signer string, txID string) (*utils.RawBlock, *utils.Block, error)
QueryBlockByTxID provides a mock function with given fields: channelID, signer, txID
func (*RPCClient) QueryChainInfo ¶
func (_m *RPCClient) QueryChainInfo(channelID string, signer string) (*fab.BlockchainInfoResponse, error)
QueryChainInfo provides a mock function with given fields: channelID, signer
func (*RPCClient) QueryTransaction ¶ added in v0.9.4
func (_m *RPCClient) QueryTransaction(channelID string, signer string, txID string) (map[string]interface{}, error)
QueryTransaction provides a mock function with given fields: channelID, signer, txID
func (*RPCClient) SubscribeEvent ¶
func (_m *RPCClient) SubscribeEvent(subInfo *api.SubscriptionInfo, since uint64) (*client.RegistrationWrapper, <-chan *fab.BlockEvent, <-chan *fab.CCEvent, error)
SubscribeEvent provides a mock function with given fields: subInfo, since
func (*RPCClient) Unregister ¶
func (_m *RPCClient) Unregister(_a0 *client.RegistrationWrapper)
Unregister provides a mock function with given fields: _a0