Documentation ¶
Index ¶
- Variables
- type ChannelMockStubs
- type ChannelsMockStubs
- type EventSubscription
- type MockStub
- type MockedPeer
- func (mi *MockedPeer) Chaincode(channel string, chaincode string) (*MockStub, error)
- func (mi *MockedPeer) Invoke(ctx context.Context, from msp.SigningIdentity, channel string, ...) (*peer.Response, api.ChaincodeTx, error)
- func (mi *MockedPeer) Query(ctx context.Context, from msp.SigningIdentity, channel string, ...) (*peer.Response, error)
- func (mi *MockedPeer) Subscribe(ctx context.Context, from msp.SigningIdentity, channel, chaincode string) (api.EventCCSubscription, error)
- func (mi *MockedPeer) WithChannel(channel string, mockStubs ...*MockStub) *MockedPeer
Constants ¶
This section is empty.
Variables ¶
View Source
var NewMockStub = cckittesting.NewMockStub
Functions ¶
This section is empty.
Types ¶
type ChannelMockStubs ¶
type ChannelsMockStubs ¶
type ChannelsMockStubs map[string]ChannelMockStubs
type EventSubscription ¶
type EventSubscription struct {
// contains filtered or unexported fields
}
func (*EventSubscription) Close ¶
func (es *EventSubscription) Close() error
func (*EventSubscription) Errors ¶
func (es *EventSubscription) Errors() chan error
func (*EventSubscription) Events ¶
func (es *EventSubscription) Events() chan *peer.ChaincodeEvent
type MockStub ¶
type MockStub = cckittesting.MockStub
type MockedPeer ¶
type MockedPeer struct { // channel name -> chaincode name ChannelCC ChannelsMockStubs // contains filtered or unexported fields }
func (*MockedPeer) Chaincode ¶
func (mi *MockedPeer) Chaincode(channel string, chaincode string) (*MockStub, error)
func (*MockedPeer) Subscribe ¶
func (mi *MockedPeer) Subscribe(ctx context.Context, from msp.SigningIdentity, channel, chaincode string) (api.EventCCSubscription, error)
func (*MockedPeer) WithChannel ¶
func (mi *MockedPeer) WithChannel(channel string, mockStubs ...*MockStub) *MockedPeer
Click to show internal directories.
Click to hide internal directories.