Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockServer
- type MockServerMockRecorder
- func (mr *MockServerMockRecorder) Alive(alive interface{}) *gomock.Call
- func (mr *MockServerMockRecorder) Keep() *gomock.Call
- func (mr *MockServerMockRecorder) ServeDownload(listener interface{}) *gomock.Call
- func (mr *MockServerMockRecorder) ServePeer(listener interface{}) *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 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) 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 interface{}) *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) ServeDownload ¶
func (mr *MockServerMockRecorder) ServeDownload(listener interface{}) *gomock.Call
ServeDownload indicates an expected call of ServeDownload.
func (*MockServerMockRecorder) ServePeer ¶
func (mr *MockServerMockRecorder) ServePeer(listener interface{}) *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.
Click to show internal directories.
Click to hide internal directories.