Documentation ¶
Index ¶
- type MockCCComm
- func (s *MockCCComm) CloseSend() error
- func (s *MockCCComm) GetRecvStream() chan *pb.ChaincodeMessage
- func (s *MockCCComm) GetSendStream() chan *pb.ChaincodeMessage
- func (s *MockCCComm) Quit()
- func (s *MockCCComm) Recv() (*pb.ChaincodeMessage, error)
- func (s *MockCCComm) Run(done <-chan struct{}) error
- func (s *MockCCComm) Send(msg *pb.ChaincodeMessage) error
- func (s *MockCCComm) SetBailOnError(b bool)
- func (s *MockCCComm) SetKeepAlive(ka *pb.ChaincodeMessage)
- func (s *MockCCComm) SetName(newname string)
- func (s *MockCCComm) SetPong(val bool)
- func (s *MockCCComm) SetResponses(respSet *MockResponseSet)
- type MockPeerCCSupport
- func (mp *MockPeerCCSupport) AddCC(name string, recv chan *pb.ChaincodeMessage, send chan *pb.ChaincodeMessage) (*MockCCComm, error)
- func (mp *MockPeerCCSupport) GetCC(name string) (*MockCCComm, error)
- func (mp *MockPeerCCSupport) GetCCMirror(name string) *MockCCComm
- func (mp *MockPeerCCSupport) RemoveAll() error
- func (mp *MockPeerCCSupport) RemoveCC(name string) error
- type MockResponse
- type MockResponseSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCCComm ¶
type MockCCComm struct {
// contains filtered or unexported fields
}
func (*MockCCComm) CloseSend ¶
func (s *MockCCComm) CloseSend() error
func (*MockCCComm) GetRecvStream ¶
func (s *MockCCComm) GetRecvStream() chan *pb.ChaincodeMessage
func (*MockCCComm) GetSendStream ¶
func (s *MockCCComm) GetSendStream() chan *pb.ChaincodeMessage
func (*MockCCComm) Quit ¶
func (s *MockCCComm) Quit()
func (*MockCCComm) Recv ¶
func (s *MockCCComm) Recv() (*pb.ChaincodeMessage, error)
func (*MockCCComm) Run ¶
func (s *MockCCComm) Run(done <-chan struct{}) error
func (*MockCCComm) Send ¶
func (s *MockCCComm) Send(msg *pb.ChaincodeMessage) error
func (*MockCCComm) SetBailOnError ¶
func (s *MockCCComm) SetBailOnError(b bool)
func (*MockCCComm) SetKeepAlive ¶
func (s *MockCCComm) SetKeepAlive(ka *pb.ChaincodeMessage)
func (*MockCCComm) SetName ¶
func (s *MockCCComm) SetName(newname string)
func (*MockCCComm) SetPong ¶
func (s *MockCCComm) SetPong(val bool)
func (*MockCCComm) SetResponses ¶
func (s *MockCCComm) SetResponses(respSet *MockResponseSet)
type MockPeerCCSupport ¶
type MockPeerCCSupport struct {
// contains filtered or unexported fields
}
func NewMockPeerSupport ¶
func NewMockPeerSupport() *MockPeerCCSupport
func (*MockPeerCCSupport) AddCC ¶
func (mp *MockPeerCCSupport) AddCC(name string, recv chan *pb.ChaincodeMessage, send chan *pb.ChaincodeMessage) (*MockCCComm, error)
func (*MockPeerCCSupport) GetCC ¶
func (mp *MockPeerCCSupport) GetCC(name string) (*MockCCComm, error)
func (*MockPeerCCSupport) GetCCMirror ¶
func (mp *MockPeerCCSupport) GetCCMirror(name string) *MockCCComm
func (*MockPeerCCSupport) RemoveAll ¶
func (mp *MockPeerCCSupport) RemoveAll() error
func (*MockPeerCCSupport) RemoveCC ¶
func (mp *MockPeerCCSupport) RemoveCC(name string) error
type MockResponse ¶
type MockResponse struct { RecvMsg *pb.ChaincodeMessage RespMsg interface{} }
type MockResponseSet ¶
type MockResponseSet struct { DoneFunc func(int, error) ErrorFunc func(int, error) Responses []*MockResponse }
Click to show internal directories.
Click to hide internal directories.