mockfabric

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentityClient

type IdentityClient struct {
	mock.Mock
}

IdentityClient is an autogenerated mock type for the IdentityClient type

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

type RPCClient struct {
	mock.Mock
}

RPCClient is an autogenerated mock type for the RPCClient type

func (*RPCClient) Close

func (_m *RPCClient) Close() error

Close provides a mock function with given fields:

func (*RPCClient) Invoke

func (_m *RPCClient) Invoke(channelId string, signer string, chaincodeName string, method string, args []string, isInit bool) (*client.TxReceipt, error)

Invoke provides a mock function with given fields: channelId, signer, chaincodeName, method, args, 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.12

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

Jump to

Keyboard shortcuts

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