Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockDaemonClient
- func (m *MockDaemonClient) CheckHealth(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
- func (m *MockDaemonClient) Download(ctx context.Context, in *dfdaemon.DownRequest, opts ...grpc.CallOption) (dfdaemon.Daemon_DownloadClient, error)
- func (m *MockDaemonClient) EXPECT() *MockDaemonClientMockRecorder
- func (m *MockDaemonClient) GetPieceTasks(ctx context.Context, in *base.PieceTaskRequest, opts ...grpc.CallOption) (*base.PiecePacket, error)
- type MockDaemonClientMockRecorder
- func (mr *MockDaemonClientMockRecorder) CheckHealth(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockDaemonClientMockRecorder) Download(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockDaemonClientMockRecorder) GetPieceTasks(ctx, in interface{}, opts ...interface{}) *gomock.Call
- type MockDaemonServer
- func (m *MockDaemonServer) CheckHealth(arg0 context.Context, arg1 *emptypb.Empty) (*emptypb.Empty, error)
- func (m *MockDaemonServer) Download(arg0 *dfdaemon.DownRequest, arg1 dfdaemon.Daemon_DownloadServer) error
- func (m *MockDaemonServer) EXPECT() *MockDaemonServerMockRecorder
- func (m *MockDaemonServer) GetPieceTasks(arg0 context.Context, arg1 *base.PieceTaskRequest) (*base.PiecePacket, error)
- type MockDaemonServerMockRecorder
- type MockDaemon_DownloadClient
- func (m *MockDaemon_DownloadClient) CloseSend() error
- func (m *MockDaemon_DownloadClient) Context() context.Context
- func (m *MockDaemon_DownloadClient) EXPECT() *MockDaemon_DownloadClientMockRecorder
- func (m *MockDaemon_DownloadClient) Header() (metadata.MD, error)
- func (m *MockDaemon_DownloadClient) Recv() (*dfdaemon.DownResult, error)
- func (m_2 *MockDaemon_DownloadClient) RecvMsg(m interface{}) error
- func (m_2 *MockDaemon_DownloadClient) SendMsg(m interface{}) error
- func (m *MockDaemon_DownloadClient) Trailer() metadata.MD
- type MockDaemon_DownloadClientMockRecorder
- func (mr *MockDaemon_DownloadClientMockRecorder) CloseSend() *gomock.Call
- func (mr *MockDaemon_DownloadClientMockRecorder) Context() *gomock.Call
- func (mr *MockDaemon_DownloadClientMockRecorder) Header() *gomock.Call
- func (mr *MockDaemon_DownloadClientMockRecorder) Recv() *gomock.Call
- func (mr *MockDaemon_DownloadClientMockRecorder) RecvMsg(m interface{}) *gomock.Call
- func (mr *MockDaemon_DownloadClientMockRecorder) SendMsg(m interface{}) *gomock.Call
- func (mr *MockDaemon_DownloadClientMockRecorder) Trailer() *gomock.Call
- type MockDaemon_DownloadServer
- func (m *MockDaemon_DownloadServer) Context() context.Context
- func (m *MockDaemon_DownloadServer) EXPECT() *MockDaemon_DownloadServerMockRecorder
- func (m_2 *MockDaemon_DownloadServer) RecvMsg(m interface{}) error
- func (m *MockDaemon_DownloadServer) Send(arg0 *dfdaemon.DownResult) error
- func (m *MockDaemon_DownloadServer) SendHeader(arg0 metadata.MD) error
- func (m_2 *MockDaemon_DownloadServer) SendMsg(m interface{}) error
- func (m *MockDaemon_DownloadServer) SetHeader(arg0 metadata.MD) error
- func (m *MockDaemon_DownloadServer) SetTrailer(arg0 metadata.MD)
- type MockDaemon_DownloadServerMockRecorder
- func (mr *MockDaemon_DownloadServerMockRecorder) Context() *gomock.Call
- func (mr *MockDaemon_DownloadServerMockRecorder) RecvMsg(m interface{}) *gomock.Call
- func (mr *MockDaemon_DownloadServerMockRecorder) Send(arg0 interface{}) *gomock.Call
- func (mr *MockDaemon_DownloadServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call
- func (mr *MockDaemon_DownloadServerMockRecorder) SendMsg(m interface{}) *gomock.Call
- func (mr *MockDaemon_DownloadServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call
- func (mr *MockDaemon_DownloadServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call
- type MockUnsafeDaemonServer
- type MockUnsafeDaemonServerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDaemonClient ¶
type MockDaemonClient struct {
// contains filtered or unexported fields
}
MockDaemonClient is a mock of DaemonClient interface.
func NewMockDaemonClient ¶
func NewMockDaemonClient(ctrl *gomock.Controller) *MockDaemonClient
NewMockDaemonClient creates a new mock instance.
func (*MockDaemonClient) CheckHealth ¶
func (m *MockDaemonClient) CheckHealth(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
CheckHealth mocks base method.
func (*MockDaemonClient) Download ¶
func (m *MockDaemonClient) Download(ctx context.Context, in *dfdaemon.DownRequest, opts ...grpc.CallOption) (dfdaemon.Daemon_DownloadClient, error)
Download mocks base method.
func (*MockDaemonClient) EXPECT ¶
func (m *MockDaemonClient) EXPECT() *MockDaemonClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDaemonClient) GetPieceTasks ¶
func (m *MockDaemonClient) GetPieceTasks(ctx context.Context, in *base.PieceTaskRequest, opts ...grpc.CallOption) (*base.PiecePacket, error)
GetPieceTasks mocks base method.
type MockDaemonClientMockRecorder ¶
type MockDaemonClientMockRecorder struct {
// contains filtered or unexported fields
}
MockDaemonClientMockRecorder is the mock recorder for MockDaemonClient.
func (*MockDaemonClientMockRecorder) CheckHealth ¶
func (mr *MockDaemonClientMockRecorder) CheckHealth(ctx, in interface{}, opts ...interface{}) *gomock.Call
CheckHealth indicates an expected call of CheckHealth.
func (*MockDaemonClientMockRecorder) Download ¶
func (mr *MockDaemonClientMockRecorder) Download(ctx, in interface{}, opts ...interface{}) *gomock.Call
Download indicates an expected call of Download.
func (*MockDaemonClientMockRecorder) GetPieceTasks ¶
func (mr *MockDaemonClientMockRecorder) GetPieceTasks(ctx, in interface{}, opts ...interface{}) *gomock.Call
GetPieceTasks indicates an expected call of GetPieceTasks.
type MockDaemonServer ¶
type MockDaemonServer struct {
// contains filtered or unexported fields
}
MockDaemonServer is a mock of DaemonServer interface.
func NewMockDaemonServer ¶
func NewMockDaemonServer(ctrl *gomock.Controller) *MockDaemonServer
NewMockDaemonServer creates a new mock instance.
func (*MockDaemonServer) CheckHealth ¶
func (m *MockDaemonServer) CheckHealth(arg0 context.Context, arg1 *emptypb.Empty) (*emptypb.Empty, error)
CheckHealth mocks base method.
func (*MockDaemonServer) Download ¶
func (m *MockDaemonServer) Download(arg0 *dfdaemon.DownRequest, arg1 dfdaemon.Daemon_DownloadServer) error
Download mocks base method.
func (*MockDaemonServer) EXPECT ¶
func (m *MockDaemonServer) EXPECT() *MockDaemonServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDaemonServer) GetPieceTasks ¶
func (m *MockDaemonServer) GetPieceTasks(arg0 context.Context, arg1 *base.PieceTaskRequest) (*base.PiecePacket, error)
GetPieceTasks mocks base method.
type MockDaemonServerMockRecorder ¶
type MockDaemonServerMockRecorder struct {
// contains filtered or unexported fields
}
MockDaemonServerMockRecorder is the mock recorder for MockDaemonServer.
func (*MockDaemonServerMockRecorder) CheckHealth ¶
func (mr *MockDaemonServerMockRecorder) CheckHealth(arg0, arg1 interface{}) *gomock.Call
CheckHealth indicates an expected call of CheckHealth.
func (*MockDaemonServerMockRecorder) Download ¶
func (mr *MockDaemonServerMockRecorder) Download(arg0, arg1 interface{}) *gomock.Call
Download indicates an expected call of Download.
func (*MockDaemonServerMockRecorder) GetPieceTasks ¶
func (mr *MockDaemonServerMockRecorder) GetPieceTasks(arg0, arg1 interface{}) *gomock.Call
GetPieceTasks indicates an expected call of GetPieceTasks.
type MockDaemon_DownloadClient ¶
type MockDaemon_DownloadClient struct {
// contains filtered or unexported fields
}
MockDaemon_DownloadClient is a mock of Daemon_DownloadClient interface.
func NewMockDaemon_DownloadClient ¶
func NewMockDaemon_DownloadClient(ctrl *gomock.Controller) *MockDaemon_DownloadClient
NewMockDaemon_DownloadClient creates a new mock instance.
func (*MockDaemon_DownloadClient) CloseSend ¶
func (m *MockDaemon_DownloadClient) CloseSend() error
CloseSend mocks base method.
func (*MockDaemon_DownloadClient) Context ¶
func (m *MockDaemon_DownloadClient) Context() context.Context
Context mocks base method.
func (*MockDaemon_DownloadClient) EXPECT ¶
func (m *MockDaemon_DownloadClient) EXPECT() *MockDaemon_DownloadClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDaemon_DownloadClient) Header ¶
func (m *MockDaemon_DownloadClient) Header() (metadata.MD, error)
Header mocks base method.
func (*MockDaemon_DownloadClient) Recv ¶
func (m *MockDaemon_DownloadClient) Recv() (*dfdaemon.DownResult, error)
Recv mocks base method.
func (*MockDaemon_DownloadClient) RecvMsg ¶
func (m_2 *MockDaemon_DownloadClient) RecvMsg(m interface{}) error
RecvMsg mocks base method.
func (*MockDaemon_DownloadClient) SendMsg ¶
func (m_2 *MockDaemon_DownloadClient) SendMsg(m interface{}) error
SendMsg mocks base method.
func (*MockDaemon_DownloadClient) Trailer ¶
func (m *MockDaemon_DownloadClient) Trailer() metadata.MD
Trailer mocks base method.
type MockDaemon_DownloadClientMockRecorder ¶
type MockDaemon_DownloadClientMockRecorder struct {
// contains filtered or unexported fields
}
MockDaemon_DownloadClientMockRecorder is the mock recorder for MockDaemon_DownloadClient.
func (*MockDaemon_DownloadClientMockRecorder) CloseSend ¶
func (mr *MockDaemon_DownloadClientMockRecorder) CloseSend() *gomock.Call
CloseSend indicates an expected call of CloseSend.
func (*MockDaemon_DownloadClientMockRecorder) Context ¶
func (mr *MockDaemon_DownloadClientMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockDaemon_DownloadClientMockRecorder) Header ¶
func (mr *MockDaemon_DownloadClientMockRecorder) Header() *gomock.Call
Header indicates an expected call of Header.
func (*MockDaemon_DownloadClientMockRecorder) Recv ¶
func (mr *MockDaemon_DownloadClientMockRecorder) Recv() *gomock.Call
Recv indicates an expected call of Recv.
func (*MockDaemon_DownloadClientMockRecorder) RecvMsg ¶
func (mr *MockDaemon_DownloadClientMockRecorder) RecvMsg(m interface{}) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockDaemon_DownloadClientMockRecorder) SendMsg ¶
func (mr *MockDaemon_DownloadClientMockRecorder) SendMsg(m interface{}) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockDaemon_DownloadClientMockRecorder) Trailer ¶
func (mr *MockDaemon_DownloadClientMockRecorder) Trailer() *gomock.Call
Trailer indicates an expected call of Trailer.
type MockDaemon_DownloadServer ¶
type MockDaemon_DownloadServer struct {
// contains filtered or unexported fields
}
MockDaemon_DownloadServer is a mock of Daemon_DownloadServer interface.
func NewMockDaemon_DownloadServer ¶
func NewMockDaemon_DownloadServer(ctrl *gomock.Controller) *MockDaemon_DownloadServer
NewMockDaemon_DownloadServer creates a new mock instance.
func (*MockDaemon_DownloadServer) Context ¶
func (m *MockDaemon_DownloadServer) Context() context.Context
Context mocks base method.
func (*MockDaemon_DownloadServer) EXPECT ¶
func (m *MockDaemon_DownloadServer) EXPECT() *MockDaemon_DownloadServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDaemon_DownloadServer) RecvMsg ¶
func (m_2 *MockDaemon_DownloadServer) RecvMsg(m interface{}) error
RecvMsg mocks base method.
func (*MockDaemon_DownloadServer) Send ¶
func (m *MockDaemon_DownloadServer) Send(arg0 *dfdaemon.DownResult) error
Send mocks base method.
func (*MockDaemon_DownloadServer) SendHeader ¶
func (m *MockDaemon_DownloadServer) SendHeader(arg0 metadata.MD) error
SendHeader mocks base method.
func (*MockDaemon_DownloadServer) SendMsg ¶
func (m_2 *MockDaemon_DownloadServer) SendMsg(m interface{}) error
SendMsg mocks base method.
func (*MockDaemon_DownloadServer) SetHeader ¶
func (m *MockDaemon_DownloadServer) SetHeader(arg0 metadata.MD) error
SetHeader mocks base method.
func (*MockDaemon_DownloadServer) SetTrailer ¶
func (m *MockDaemon_DownloadServer) SetTrailer(arg0 metadata.MD)
SetTrailer mocks base method.
type MockDaemon_DownloadServerMockRecorder ¶
type MockDaemon_DownloadServerMockRecorder struct {
// contains filtered or unexported fields
}
MockDaemon_DownloadServerMockRecorder is the mock recorder for MockDaemon_DownloadServer.
func (*MockDaemon_DownloadServerMockRecorder) Context ¶
func (mr *MockDaemon_DownloadServerMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockDaemon_DownloadServerMockRecorder) RecvMsg ¶
func (mr *MockDaemon_DownloadServerMockRecorder) RecvMsg(m interface{}) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockDaemon_DownloadServerMockRecorder) Send ¶
func (mr *MockDaemon_DownloadServerMockRecorder) Send(arg0 interface{}) *gomock.Call
Send indicates an expected call of Send.
func (*MockDaemon_DownloadServerMockRecorder) SendHeader ¶
func (mr *MockDaemon_DownloadServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call
SendHeader indicates an expected call of SendHeader.
func (*MockDaemon_DownloadServerMockRecorder) SendMsg ¶
func (mr *MockDaemon_DownloadServerMockRecorder) SendMsg(m interface{}) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockDaemon_DownloadServerMockRecorder) SetHeader ¶
func (mr *MockDaemon_DownloadServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call
SetHeader indicates an expected call of SetHeader.
func (*MockDaemon_DownloadServerMockRecorder) SetTrailer ¶
func (mr *MockDaemon_DownloadServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call
SetTrailer indicates an expected call of SetTrailer.
type MockUnsafeDaemonServer ¶
type MockUnsafeDaemonServer struct {
// contains filtered or unexported fields
}
MockUnsafeDaemonServer is a mock of UnsafeDaemonServer interface.
func NewMockUnsafeDaemonServer ¶
func NewMockUnsafeDaemonServer(ctrl *gomock.Controller) *MockUnsafeDaemonServer
NewMockUnsafeDaemonServer creates a new mock instance.
func (*MockUnsafeDaemonServer) EXPECT ¶
func (m *MockUnsafeDaemonServer) EXPECT() *MockUnsafeDaemonServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUnsafeDaemonServerMockRecorder ¶
type MockUnsafeDaemonServerMockRecorder struct {
// contains filtered or unexported fields
}
MockUnsafeDaemonServerMockRecorder is the mock recorder for MockUnsafeDaemonServer.