Documentation
¶
Overview ¶
Package syncmock is a generated GoMock package.
Index ¶
- type NetworkClient
- func (m *NetworkClient) Connected(arg0 context.Context, arg1 ids.NodeID, arg2 *version.Application) error
- func (m *NetworkClient) Disconnected(arg0 context.Context, arg1 ids.NodeID) error
- func (m *NetworkClient) EXPECT() *NetworkClientMockRecorder
- func (m *NetworkClient) Request(arg0 context.Context, arg1 ids.NodeID, arg2 []byte) ([]byte, error)
- func (m *NetworkClient) RequestAny(arg0 context.Context, arg1 []byte) (ids.NodeID, []byte, error)
- func (m *NetworkClient) RequestFailed(arg0 context.Context, arg1 ids.NodeID, arg2 uint32) error
- func (m *NetworkClient) Response(arg0 context.Context, arg1 ids.NodeID, arg2 uint32, arg3 []byte) error
- type NetworkClientMockRecorder
- func (mr *NetworkClientMockRecorder) Connected(arg0, arg1, arg2 any) *gomock.Call
- func (mr *NetworkClientMockRecorder) Disconnected(arg0, arg1 any) *gomock.Call
- func (mr *NetworkClientMockRecorder) Request(arg0, arg1, arg2 any) *gomock.Call
- func (mr *NetworkClientMockRecorder) RequestAny(arg0, arg1 any) *gomock.Call
- func (mr *NetworkClientMockRecorder) RequestFailed(arg0, arg1, arg2 any) *gomock.Call
- func (mr *NetworkClientMockRecorder) Response(arg0, arg1, arg2, arg3 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkClient ¶
type NetworkClient struct {
// contains filtered or unexported fields
}
NetworkClient is a mock of NetworkClient interface.
func NewNetworkClient ¶
func NewNetworkClient(ctrl *gomock.Controller) *NetworkClient
NewNetworkClient creates a new mock instance.
func (*NetworkClient) Connected ¶
func (m *NetworkClient) Connected(arg0 context.Context, arg1 ids.NodeID, arg2 *version.Application) error
Connected mocks base method.
func (*NetworkClient) Disconnected ¶
Disconnected mocks base method.
func (*NetworkClient) EXPECT ¶
func (m *NetworkClient) EXPECT() *NetworkClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*NetworkClient) RequestAny ¶
RequestAny mocks base method.
func (*NetworkClient) RequestFailed ¶ added in v1.22.88
RequestFailed mocks base method.
type NetworkClientMockRecorder ¶
type NetworkClientMockRecorder struct {
// contains filtered or unexported fields
}
NetworkClientMockRecorder is the mock recorder for NetworkClient.
func (*NetworkClientMockRecorder) Connected ¶
func (mr *NetworkClientMockRecorder) Connected(arg0, arg1, arg2 any) *gomock.Call
Connected indicates an expected call of Connected.
func (*NetworkClientMockRecorder) Disconnected ¶
func (mr *NetworkClientMockRecorder) Disconnected(arg0, arg1 any) *gomock.Call
Disconnected indicates an expected call of Disconnected.
func (*NetworkClientMockRecorder) Request ¶
func (mr *NetworkClientMockRecorder) Request(arg0, arg1, arg2 any) *gomock.Call
Request indicates an expected call of Request.
func (*NetworkClientMockRecorder) RequestAny ¶
func (mr *NetworkClientMockRecorder) RequestAny(arg0, arg1 any) *gomock.Call
RequestAny indicates an expected call of RequestAny.
func (*NetworkClientMockRecorder) RequestFailed ¶ added in v1.22.88
func (mr *NetworkClientMockRecorder) RequestFailed(arg0, arg1, arg2 any) *gomock.Call
RequestFailed indicates an expected call of RequestFailed.