Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: ../trainer_grpc.pb.go
Generated by this command:
mockgen -destination trainer_mock.go -source ../trainer_grpc.pb.go -package mocks
Package mocks is a generated GoMock package.
Index ¶
- type MockTrainerClient
- type MockTrainerClientMockRecorder
- type MockTrainerServer
- type MockTrainerServerMockRecorder
- type MockTrainer_TrainClient
- func (m *MockTrainer_TrainClient) CloseAndRecv() (*emptypb.Empty, error)
- func (m *MockTrainer_TrainClient) CloseSend() error
- func (m *MockTrainer_TrainClient) Context() context.Context
- func (m *MockTrainer_TrainClient) EXPECT() *MockTrainer_TrainClientMockRecorder
- func (m *MockTrainer_TrainClient) Header() (metadata.MD, error)
- func (m_2 *MockTrainer_TrainClient) RecvMsg(m any) error
- func (m *MockTrainer_TrainClient) Send(arg0 *trainer.TrainRequest) error
- func (m_2 *MockTrainer_TrainClient) SendMsg(m any) error
- func (m *MockTrainer_TrainClient) Trailer() metadata.MD
- type MockTrainer_TrainClientMockRecorder
- func (mr *MockTrainer_TrainClientMockRecorder) CloseAndRecv() *gomock.Call
- func (mr *MockTrainer_TrainClientMockRecorder) CloseSend() *gomock.Call
- func (mr *MockTrainer_TrainClientMockRecorder) Context() *gomock.Call
- func (mr *MockTrainer_TrainClientMockRecorder) Header() *gomock.Call
- func (mr *MockTrainer_TrainClientMockRecorder) RecvMsg(m any) *gomock.Call
- func (mr *MockTrainer_TrainClientMockRecorder) Send(arg0 any) *gomock.Call
- func (mr *MockTrainer_TrainClientMockRecorder) SendMsg(m any) *gomock.Call
- func (mr *MockTrainer_TrainClientMockRecorder) Trailer() *gomock.Call
- type MockTrainer_TrainServer
- func (m *MockTrainer_TrainServer) Context() context.Context
- func (m *MockTrainer_TrainServer) EXPECT() *MockTrainer_TrainServerMockRecorder
- func (m *MockTrainer_TrainServer) Recv() (*trainer.TrainRequest, error)
- func (m_2 *MockTrainer_TrainServer) RecvMsg(m any) error
- func (m *MockTrainer_TrainServer) SendAndClose(arg0 *emptypb.Empty) error
- func (m *MockTrainer_TrainServer) SendHeader(arg0 metadata.MD) error
- func (m_2 *MockTrainer_TrainServer) SendMsg(m any) error
- func (m *MockTrainer_TrainServer) SetHeader(arg0 metadata.MD) error
- func (m *MockTrainer_TrainServer) SetTrailer(arg0 metadata.MD)
- type MockTrainer_TrainServerMockRecorder
- func (mr *MockTrainer_TrainServerMockRecorder) Context() *gomock.Call
- func (mr *MockTrainer_TrainServerMockRecorder) Recv() *gomock.Call
- func (mr *MockTrainer_TrainServerMockRecorder) RecvMsg(m any) *gomock.Call
- func (mr *MockTrainer_TrainServerMockRecorder) SendAndClose(arg0 any) *gomock.Call
- func (mr *MockTrainer_TrainServerMockRecorder) SendHeader(arg0 any) *gomock.Call
- func (mr *MockTrainer_TrainServerMockRecorder) SendMsg(m any) *gomock.Call
- func (mr *MockTrainer_TrainServerMockRecorder) SetHeader(arg0 any) *gomock.Call
- func (mr *MockTrainer_TrainServerMockRecorder) SetTrailer(arg0 any) *gomock.Call
- type MockUnsafeTrainerServer
- type MockUnsafeTrainerServerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTrainerClient ¶
type MockTrainerClient struct {
// contains filtered or unexported fields
}
MockTrainerClient is a mock of TrainerClient interface.
func NewMockTrainerClient ¶
func NewMockTrainerClient(ctrl *gomock.Controller) *MockTrainerClient
NewMockTrainerClient creates a new mock instance.
func (*MockTrainerClient) EXPECT ¶
func (m *MockTrainerClient) EXPECT() *MockTrainerClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTrainerClient) Train ¶
func (m *MockTrainerClient) Train(ctx context.Context, opts ...grpc.CallOption) (trainer.Trainer_TrainClient, error)
Train mocks base method.
type MockTrainerClientMockRecorder ¶
type MockTrainerClientMockRecorder struct {
// contains filtered or unexported fields
}
MockTrainerClientMockRecorder is the mock recorder for MockTrainerClient.
type MockTrainerServer ¶
type MockTrainerServer struct {
// contains filtered or unexported fields
}
MockTrainerServer is a mock of TrainerServer interface.
func NewMockTrainerServer ¶
func NewMockTrainerServer(ctrl *gomock.Controller) *MockTrainerServer
NewMockTrainerServer creates a new mock instance.
func (*MockTrainerServer) EXPECT ¶
func (m *MockTrainerServer) EXPECT() *MockTrainerServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTrainerServer) Train ¶
func (m *MockTrainerServer) Train(arg0 trainer.Trainer_TrainServer) error
Train mocks base method.
type MockTrainerServerMockRecorder ¶
type MockTrainerServerMockRecorder struct {
// contains filtered or unexported fields
}
MockTrainerServerMockRecorder is the mock recorder for MockTrainerServer.
type MockTrainer_TrainClient ¶
type MockTrainer_TrainClient struct {
// contains filtered or unexported fields
}
MockTrainer_TrainClient is a mock of Trainer_TrainClient interface.
func NewMockTrainer_TrainClient ¶
func NewMockTrainer_TrainClient(ctrl *gomock.Controller) *MockTrainer_TrainClient
NewMockTrainer_TrainClient creates a new mock instance.
func (*MockTrainer_TrainClient) CloseAndRecv ¶
func (m *MockTrainer_TrainClient) CloseAndRecv() (*emptypb.Empty, error)
CloseAndRecv mocks base method.
func (*MockTrainer_TrainClient) CloseSend ¶
func (m *MockTrainer_TrainClient) CloseSend() error
CloseSend mocks base method.
func (*MockTrainer_TrainClient) Context ¶
func (m *MockTrainer_TrainClient) Context() context.Context
Context mocks base method.
func (*MockTrainer_TrainClient) EXPECT ¶
func (m *MockTrainer_TrainClient) EXPECT() *MockTrainer_TrainClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTrainer_TrainClient) Header ¶
func (m *MockTrainer_TrainClient) Header() (metadata.MD, error)
Header mocks base method.
func (*MockTrainer_TrainClient) RecvMsg ¶
func (m_2 *MockTrainer_TrainClient) RecvMsg(m any) error
RecvMsg mocks base method.
func (*MockTrainer_TrainClient) Send ¶
func (m *MockTrainer_TrainClient) Send(arg0 *trainer.TrainRequest) error
Send mocks base method.
func (*MockTrainer_TrainClient) SendMsg ¶
func (m_2 *MockTrainer_TrainClient) SendMsg(m any) error
SendMsg mocks base method.
func (*MockTrainer_TrainClient) Trailer ¶
func (m *MockTrainer_TrainClient) Trailer() metadata.MD
Trailer mocks base method.
type MockTrainer_TrainClientMockRecorder ¶
type MockTrainer_TrainClientMockRecorder struct {
// contains filtered or unexported fields
}
MockTrainer_TrainClientMockRecorder is the mock recorder for MockTrainer_TrainClient.
func (*MockTrainer_TrainClientMockRecorder) CloseAndRecv ¶
func (mr *MockTrainer_TrainClientMockRecorder) CloseAndRecv() *gomock.Call
CloseAndRecv indicates an expected call of CloseAndRecv.
func (*MockTrainer_TrainClientMockRecorder) CloseSend ¶
func (mr *MockTrainer_TrainClientMockRecorder) CloseSend() *gomock.Call
CloseSend indicates an expected call of CloseSend.
func (*MockTrainer_TrainClientMockRecorder) Context ¶
func (mr *MockTrainer_TrainClientMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockTrainer_TrainClientMockRecorder) Header ¶
func (mr *MockTrainer_TrainClientMockRecorder) Header() *gomock.Call
Header indicates an expected call of Header.
func (*MockTrainer_TrainClientMockRecorder) RecvMsg ¶
func (mr *MockTrainer_TrainClientMockRecorder) RecvMsg(m any) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockTrainer_TrainClientMockRecorder) Send ¶
func (mr *MockTrainer_TrainClientMockRecorder) Send(arg0 any) *gomock.Call
Send indicates an expected call of Send.
func (*MockTrainer_TrainClientMockRecorder) SendMsg ¶
func (mr *MockTrainer_TrainClientMockRecorder) SendMsg(m any) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockTrainer_TrainClientMockRecorder) Trailer ¶
func (mr *MockTrainer_TrainClientMockRecorder) Trailer() *gomock.Call
Trailer indicates an expected call of Trailer.
type MockTrainer_TrainServer ¶
type MockTrainer_TrainServer struct {
// contains filtered or unexported fields
}
MockTrainer_TrainServer is a mock of Trainer_TrainServer interface.
func NewMockTrainer_TrainServer ¶
func NewMockTrainer_TrainServer(ctrl *gomock.Controller) *MockTrainer_TrainServer
NewMockTrainer_TrainServer creates a new mock instance.
func (*MockTrainer_TrainServer) Context ¶
func (m *MockTrainer_TrainServer) Context() context.Context
Context mocks base method.
func (*MockTrainer_TrainServer) EXPECT ¶
func (m *MockTrainer_TrainServer) EXPECT() *MockTrainer_TrainServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTrainer_TrainServer) Recv ¶
func (m *MockTrainer_TrainServer) Recv() (*trainer.TrainRequest, error)
Recv mocks base method.
func (*MockTrainer_TrainServer) RecvMsg ¶
func (m_2 *MockTrainer_TrainServer) RecvMsg(m any) error
RecvMsg mocks base method.
func (*MockTrainer_TrainServer) SendAndClose ¶
func (m *MockTrainer_TrainServer) SendAndClose(arg0 *emptypb.Empty) error
SendAndClose mocks base method.
func (*MockTrainer_TrainServer) SendHeader ¶
func (m *MockTrainer_TrainServer) SendHeader(arg0 metadata.MD) error
SendHeader mocks base method.
func (*MockTrainer_TrainServer) SendMsg ¶
func (m_2 *MockTrainer_TrainServer) SendMsg(m any) error
SendMsg mocks base method.
func (*MockTrainer_TrainServer) SetHeader ¶
func (m *MockTrainer_TrainServer) SetHeader(arg0 metadata.MD) error
SetHeader mocks base method.
func (*MockTrainer_TrainServer) SetTrailer ¶
func (m *MockTrainer_TrainServer) SetTrailer(arg0 metadata.MD)
SetTrailer mocks base method.
type MockTrainer_TrainServerMockRecorder ¶
type MockTrainer_TrainServerMockRecorder struct {
// contains filtered or unexported fields
}
MockTrainer_TrainServerMockRecorder is the mock recorder for MockTrainer_TrainServer.
func (*MockTrainer_TrainServerMockRecorder) Context ¶
func (mr *MockTrainer_TrainServerMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockTrainer_TrainServerMockRecorder) Recv ¶
func (mr *MockTrainer_TrainServerMockRecorder) Recv() *gomock.Call
Recv indicates an expected call of Recv.
func (*MockTrainer_TrainServerMockRecorder) RecvMsg ¶
func (mr *MockTrainer_TrainServerMockRecorder) RecvMsg(m any) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockTrainer_TrainServerMockRecorder) SendAndClose ¶
func (mr *MockTrainer_TrainServerMockRecorder) SendAndClose(arg0 any) *gomock.Call
SendAndClose indicates an expected call of SendAndClose.
func (*MockTrainer_TrainServerMockRecorder) SendHeader ¶
func (mr *MockTrainer_TrainServerMockRecorder) SendHeader(arg0 any) *gomock.Call
SendHeader indicates an expected call of SendHeader.
func (*MockTrainer_TrainServerMockRecorder) SendMsg ¶
func (mr *MockTrainer_TrainServerMockRecorder) SendMsg(m any) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockTrainer_TrainServerMockRecorder) SetHeader ¶
func (mr *MockTrainer_TrainServerMockRecorder) SetHeader(arg0 any) *gomock.Call
SetHeader indicates an expected call of SetHeader.
func (*MockTrainer_TrainServerMockRecorder) SetTrailer ¶
func (mr *MockTrainer_TrainServerMockRecorder) SetTrailer(arg0 any) *gomock.Call
SetTrailer indicates an expected call of SetTrailer.
type MockUnsafeTrainerServer ¶
type MockUnsafeTrainerServer struct {
// contains filtered or unexported fields
}
MockUnsafeTrainerServer is a mock of UnsafeTrainerServer interface.
func NewMockUnsafeTrainerServer ¶
func NewMockUnsafeTrainerServer(ctrl *gomock.Controller) *MockUnsafeTrainerServer
NewMockUnsafeTrainerServer creates a new mock instance.
func (*MockUnsafeTrainerServer) EXPECT ¶
func (m *MockUnsafeTrainerServer) EXPECT() *MockUnsafeTrainerServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUnsafeTrainerServerMockRecorder ¶
type MockUnsafeTrainerServerMockRecorder struct {
// contains filtered or unexported fields
}
MockUnsafeTrainerServerMockRecorder is the mock recorder for MockUnsafeTrainerServer.