Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: rpcserver.go
Generated by this command:
mockgen -destination mocks/rpcserver_mock.go -source rpcserver.go -package mocks
Package mocks is a generated GoMock package.
Index ¶
- type MockResultSender
- type MockResultSenderMockRecorder
- type MockServer
- func (m *MockServer) Alive(alive time.Duration) bool
- func (m *MockServer) EXPECT() *MockServerMockRecorder
- func (m *MockServer) Keep()
- func (m *MockServer) OnNotify(arg0 *config.DynconfigData)
- func (m *MockServer) ServeDownload(listener net.Listener) error
- func (m *MockServer) ServePeer(listener net.Listener) error
- func (m *MockServer) Stop()
- type MockServerMockRecorder
- func (mr *MockServerMockRecorder) Alive(alive any) *gomock.Call
- func (mr *MockServerMockRecorder) Keep() *gomock.Call
- func (mr *MockServerMockRecorder) OnNotify(arg0 any) *gomock.Call
- func (mr *MockServerMockRecorder) ServeDownload(listener any) *gomock.Call
- func (mr *MockServerMockRecorder) ServePeer(listener any) *gomock.Call
- func (mr *MockServerMockRecorder) Stop() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockResultSender ¶ added in v2.0.6
type MockResultSender struct {
// contains filtered or unexported fields
}
MockResultSender is a mock of ResultSender interface.
func NewMockResultSender ¶ added in v2.0.6
func NewMockResultSender(ctrl *gomock.Controller) *MockResultSender
NewMockResultSender creates a new mock instance.
func (*MockResultSender) EXPECT ¶ added in v2.0.6
func (m *MockResultSender) EXPECT() *MockResultSenderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockResultSender) Send ¶ added in v2.0.6
func (m *MockResultSender) Send(arg0 *dfdaemon.DownResult) error
Send mocks base method.
type MockResultSenderMockRecorder ¶ added in v2.0.6
type MockResultSenderMockRecorder struct {
// contains filtered or unexported fields
}
MockResultSenderMockRecorder is the mock recorder for MockResultSender.
type MockServer ¶
type MockServer struct {
// contains filtered or unexported fields
}
MockServer is a mock of Server interface.
func NewMockServer ¶
func NewMockServer(ctrl *gomock.Controller) *MockServer
NewMockServer creates a new mock instance.
func (*MockServer) Alive ¶
func (m *MockServer) Alive(alive time.Duration) bool
Alive mocks base method.
func (*MockServer) EXPECT ¶
func (m *MockServer) EXPECT() *MockServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockServer) OnNotify ¶ added in v2.0.9
func (m *MockServer) OnNotify(arg0 *config.DynconfigData)
OnNotify mocks base method.
func (*MockServer) ServeDownload ¶
func (m *MockServer) ServeDownload(listener net.Listener) error
ServeDownload mocks base method.
type MockServerMockRecorder ¶
type MockServerMockRecorder struct {
// contains filtered or unexported fields
}
MockServerMockRecorder is the mock recorder for MockServer.
func (*MockServerMockRecorder) Alive ¶
func (mr *MockServerMockRecorder) Alive(alive any) *gomock.Call
Alive indicates an expected call of Alive.
func (*MockServerMockRecorder) Keep ¶
func (mr *MockServerMockRecorder) Keep() *gomock.Call
Keep indicates an expected call of Keep.
func (*MockServerMockRecorder) OnNotify ¶ added in v2.0.9
func (mr *MockServerMockRecorder) OnNotify(arg0 any) *gomock.Call
OnNotify indicates an expected call of OnNotify.
func (*MockServerMockRecorder) ServeDownload ¶
func (mr *MockServerMockRecorder) ServeDownload(listener any) *gomock.Call
ServeDownload indicates an expected call of ServeDownload.
func (*MockServerMockRecorder) ServePeer ¶
func (mr *MockServerMockRecorder) ServePeer(listener any) *gomock.Call
ServePeer indicates an expected call of ServePeer.
func (*MockServerMockRecorder) Stop ¶
func (mr *MockServerMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.