Documentation ¶
Overview ¶
Package mock_chat is a generated GoMock package.
Index ¶
- type MockChatServiceClient
- func (m *MockChatServiceClient) CreateMessage(ctx context.Context, in *chat.CreateMessageRequest, opts ...grpc.CallOption) (*chat.MessageResponse, error)
- func (m *MockChatServiceClient) CreateRoom(ctx context.Context, in *chat.CreateRoomRequest, opts ...grpc.CallOption) (*chat.RoomResponse, error)
- func (m *MockChatServiceClient) EXPECT() *MockChatServiceClientMockRecorder
- func (m *MockChatServiceClient) ListRoom(ctx context.Context, in *chat.ListRoomRequest, opts ...grpc.CallOption) (*chat.RoomListResponse, error)
- func (m *MockChatServiceClient) UploadImage(ctx context.Context, opts ...grpc.CallOption) (chat.ChatService_UploadImageClient, error)
- type MockChatServiceClientMockRecorder
- func (mr *MockChatServiceClientMockRecorder) CreateMessage(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockChatServiceClientMockRecorder) CreateRoom(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockChatServiceClientMockRecorder) ListRoom(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockChatServiceClientMockRecorder) UploadImage(ctx interface{}, opts ...interface{}) *gomock.Call
- type MockChatServiceServer
- func (m *MockChatServiceServer) CreateMessage(arg0 context.Context, arg1 *chat.CreateMessageRequest) (*chat.MessageResponse, error)
- func (m *MockChatServiceServer) CreateRoom(arg0 context.Context, arg1 *chat.CreateRoomRequest) (*chat.RoomResponse, error)
- func (m *MockChatServiceServer) EXPECT() *MockChatServiceServerMockRecorder
- func (m *MockChatServiceServer) ListRoom(arg0 context.Context, arg1 *chat.ListRoomRequest) (*chat.RoomListResponse, error)
- func (m *MockChatServiceServer) UploadImage(arg0 chat.ChatService_UploadImageServer) error
- type MockChatServiceServerMockRecorder
- func (mr *MockChatServiceServerMockRecorder) CreateMessage(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockChatServiceServerMockRecorder) CreateRoom(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockChatServiceServerMockRecorder) ListRoom(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockChatServiceServerMockRecorder) UploadImage(arg0 interface{}) *gomock.Call
- type MockChatService_UploadImageClient
- func (m *MockChatService_UploadImageClient) CloseAndRecv() (*chat.MessageResponse, error)
- func (m *MockChatService_UploadImageClient) CloseSend() error
- func (m *MockChatService_UploadImageClient) Context() context.Context
- func (m *MockChatService_UploadImageClient) EXPECT() *MockChatService_UploadImageClientMockRecorder
- func (m *MockChatService_UploadImageClient) Header() (metadata.MD, error)
- func (m_2 *MockChatService_UploadImageClient) RecvMsg(m interface{}) error
- func (m *MockChatService_UploadImageClient) Send(arg0 *chat.UploadChatImageRequest) error
- func (m_2 *MockChatService_UploadImageClient) SendMsg(m interface{}) error
- func (m *MockChatService_UploadImageClient) Trailer() metadata.MD
- type MockChatService_UploadImageClientMockRecorder
- func (mr *MockChatService_UploadImageClientMockRecorder) CloseAndRecv() *gomock.Call
- func (mr *MockChatService_UploadImageClientMockRecorder) CloseSend() *gomock.Call
- func (mr *MockChatService_UploadImageClientMockRecorder) Context() *gomock.Call
- func (mr *MockChatService_UploadImageClientMockRecorder) Header() *gomock.Call
- func (mr *MockChatService_UploadImageClientMockRecorder) RecvMsg(m interface{}) *gomock.Call
- func (mr *MockChatService_UploadImageClientMockRecorder) Send(arg0 interface{}) *gomock.Call
- func (mr *MockChatService_UploadImageClientMockRecorder) SendMsg(m interface{}) *gomock.Call
- func (mr *MockChatService_UploadImageClientMockRecorder) Trailer() *gomock.Call
- type MockChatService_UploadImageServer
- func (m *MockChatService_UploadImageServer) Context() context.Context
- func (m *MockChatService_UploadImageServer) EXPECT() *MockChatService_UploadImageServerMockRecorder
- func (m *MockChatService_UploadImageServer) Recv() (*chat.UploadChatImageRequest, error)
- func (m_2 *MockChatService_UploadImageServer) RecvMsg(m interface{}) error
- func (m *MockChatService_UploadImageServer) SendAndClose(arg0 *chat.MessageResponse) error
- func (m *MockChatService_UploadImageServer) SendHeader(arg0 metadata.MD) error
- func (m_2 *MockChatService_UploadImageServer) SendMsg(m interface{}) error
- func (m *MockChatService_UploadImageServer) SetHeader(arg0 metadata.MD) error
- func (m *MockChatService_UploadImageServer) SetTrailer(arg0 metadata.MD)
- type MockChatService_UploadImageServerMockRecorder
- func (mr *MockChatService_UploadImageServerMockRecorder) Context() *gomock.Call
- func (mr *MockChatService_UploadImageServerMockRecorder) Recv() *gomock.Call
- func (mr *MockChatService_UploadImageServerMockRecorder) RecvMsg(m interface{}) *gomock.Call
- func (mr *MockChatService_UploadImageServerMockRecorder) SendAndClose(arg0 interface{}) *gomock.Call
- func (mr *MockChatService_UploadImageServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call
- func (mr *MockChatService_UploadImageServerMockRecorder) SendMsg(m interface{}) *gomock.Call
- func (mr *MockChatService_UploadImageServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call
- func (mr *MockChatService_UploadImageServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call
- type MockUnsafeChatServiceServer
- type MockUnsafeChatServiceServerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockChatServiceClient ¶
type MockChatServiceClient struct {
// contains filtered or unexported fields
}
MockChatServiceClient is a mock of ChatServiceClient interface.
func NewMockChatServiceClient ¶
func NewMockChatServiceClient(ctrl *gomock.Controller) *MockChatServiceClient
NewMockChatServiceClient creates a new mock instance.
func (*MockChatServiceClient) CreateMessage ¶
func (m *MockChatServiceClient) CreateMessage(ctx context.Context, in *chat.CreateMessageRequest, opts ...grpc.CallOption) (*chat.MessageResponse, error)
CreateMessage mocks base method.
func (*MockChatServiceClient) CreateRoom ¶
func (m *MockChatServiceClient) CreateRoom(ctx context.Context, in *chat.CreateRoomRequest, opts ...grpc.CallOption) (*chat.RoomResponse, error)
CreateRoom mocks base method.
func (*MockChatServiceClient) EXPECT ¶
func (m *MockChatServiceClient) EXPECT() *MockChatServiceClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockChatServiceClient) ListRoom ¶
func (m *MockChatServiceClient) ListRoom(ctx context.Context, in *chat.ListRoomRequest, opts ...grpc.CallOption) (*chat.RoomListResponse, error)
ListRoom mocks base method.
func (*MockChatServiceClient) UploadImage ¶
func (m *MockChatServiceClient) UploadImage(ctx context.Context, opts ...grpc.CallOption) (chat.ChatService_UploadImageClient, error)
UploadImage mocks base method.
type MockChatServiceClientMockRecorder ¶
type MockChatServiceClientMockRecorder struct {
// contains filtered or unexported fields
}
MockChatServiceClientMockRecorder is the mock recorder for MockChatServiceClient.
func (*MockChatServiceClientMockRecorder) CreateMessage ¶
func (mr *MockChatServiceClientMockRecorder) CreateMessage(ctx, in interface{}, opts ...interface{}) *gomock.Call
CreateMessage indicates an expected call of CreateMessage.
func (*MockChatServiceClientMockRecorder) CreateRoom ¶
func (mr *MockChatServiceClientMockRecorder) CreateRoom(ctx, in interface{}, opts ...interface{}) *gomock.Call
CreateRoom indicates an expected call of CreateRoom.
func (*MockChatServiceClientMockRecorder) ListRoom ¶
func (mr *MockChatServiceClientMockRecorder) ListRoom(ctx, in interface{}, opts ...interface{}) *gomock.Call
ListRoom indicates an expected call of ListRoom.
func (*MockChatServiceClientMockRecorder) UploadImage ¶
func (mr *MockChatServiceClientMockRecorder) UploadImage(ctx interface{}, opts ...interface{}) *gomock.Call
UploadImage indicates an expected call of UploadImage.
type MockChatServiceServer ¶
type MockChatServiceServer struct {
// contains filtered or unexported fields
}
MockChatServiceServer is a mock of ChatServiceServer interface.
func NewMockChatServiceServer ¶
func NewMockChatServiceServer(ctrl *gomock.Controller) *MockChatServiceServer
NewMockChatServiceServer creates a new mock instance.
func (*MockChatServiceServer) CreateMessage ¶
func (m *MockChatServiceServer) CreateMessage(arg0 context.Context, arg1 *chat.CreateMessageRequest) (*chat.MessageResponse, error)
CreateMessage mocks base method.
func (*MockChatServiceServer) CreateRoom ¶
func (m *MockChatServiceServer) CreateRoom(arg0 context.Context, arg1 *chat.CreateRoomRequest) (*chat.RoomResponse, error)
CreateRoom mocks base method.
func (*MockChatServiceServer) EXPECT ¶
func (m *MockChatServiceServer) EXPECT() *MockChatServiceServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockChatServiceServer) ListRoom ¶
func (m *MockChatServiceServer) ListRoom(arg0 context.Context, arg1 *chat.ListRoomRequest) (*chat.RoomListResponse, error)
ListRoom mocks base method.
func (*MockChatServiceServer) UploadImage ¶
func (m *MockChatServiceServer) UploadImage(arg0 chat.ChatService_UploadImageServer) error
UploadImage mocks base method.
type MockChatServiceServerMockRecorder ¶
type MockChatServiceServerMockRecorder struct {
// contains filtered or unexported fields
}
MockChatServiceServerMockRecorder is the mock recorder for MockChatServiceServer.
func (*MockChatServiceServerMockRecorder) CreateMessage ¶
func (mr *MockChatServiceServerMockRecorder) CreateMessage(arg0, arg1 interface{}) *gomock.Call
CreateMessage indicates an expected call of CreateMessage.
func (*MockChatServiceServerMockRecorder) CreateRoom ¶
func (mr *MockChatServiceServerMockRecorder) CreateRoom(arg0, arg1 interface{}) *gomock.Call
CreateRoom indicates an expected call of CreateRoom.
func (*MockChatServiceServerMockRecorder) ListRoom ¶
func (mr *MockChatServiceServerMockRecorder) ListRoom(arg0, arg1 interface{}) *gomock.Call
ListRoom indicates an expected call of ListRoom.
func (*MockChatServiceServerMockRecorder) UploadImage ¶
func (mr *MockChatServiceServerMockRecorder) UploadImage(arg0 interface{}) *gomock.Call
UploadImage indicates an expected call of UploadImage.
type MockChatService_UploadImageClient ¶
type MockChatService_UploadImageClient struct {
// contains filtered or unexported fields
}
MockChatService_UploadImageClient is a mock of ChatService_UploadImageClient interface.
func NewMockChatService_UploadImageClient ¶
func NewMockChatService_UploadImageClient(ctrl *gomock.Controller) *MockChatService_UploadImageClient
NewMockChatService_UploadImageClient creates a new mock instance.
func (*MockChatService_UploadImageClient) CloseAndRecv ¶
func (m *MockChatService_UploadImageClient) CloseAndRecv() (*chat.MessageResponse, error)
CloseAndRecv mocks base method.
func (*MockChatService_UploadImageClient) CloseSend ¶
func (m *MockChatService_UploadImageClient) CloseSend() error
CloseSend mocks base method.
func (*MockChatService_UploadImageClient) Context ¶
func (m *MockChatService_UploadImageClient) Context() context.Context
Context mocks base method.
func (*MockChatService_UploadImageClient) EXPECT ¶
func (m *MockChatService_UploadImageClient) EXPECT() *MockChatService_UploadImageClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockChatService_UploadImageClient) Header ¶
func (m *MockChatService_UploadImageClient) Header() (metadata.MD, error)
Header mocks base method.
func (*MockChatService_UploadImageClient) RecvMsg ¶
func (m_2 *MockChatService_UploadImageClient) RecvMsg(m interface{}) error
RecvMsg mocks base method.
func (*MockChatService_UploadImageClient) Send ¶
func (m *MockChatService_UploadImageClient) Send(arg0 *chat.UploadChatImageRequest) error
Send mocks base method.
func (*MockChatService_UploadImageClient) SendMsg ¶
func (m_2 *MockChatService_UploadImageClient) SendMsg(m interface{}) error
SendMsg mocks base method.
func (*MockChatService_UploadImageClient) Trailer ¶
func (m *MockChatService_UploadImageClient) Trailer() metadata.MD
Trailer mocks base method.
type MockChatService_UploadImageClientMockRecorder ¶
type MockChatService_UploadImageClientMockRecorder struct {
// contains filtered or unexported fields
}
MockChatService_UploadImageClientMockRecorder is the mock recorder for MockChatService_UploadImageClient.
func (*MockChatService_UploadImageClientMockRecorder) CloseAndRecv ¶
func (mr *MockChatService_UploadImageClientMockRecorder) CloseAndRecv() *gomock.Call
CloseAndRecv indicates an expected call of CloseAndRecv.
func (*MockChatService_UploadImageClientMockRecorder) CloseSend ¶
func (mr *MockChatService_UploadImageClientMockRecorder) CloseSend() *gomock.Call
CloseSend indicates an expected call of CloseSend.
func (*MockChatService_UploadImageClientMockRecorder) Context ¶
func (mr *MockChatService_UploadImageClientMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockChatService_UploadImageClientMockRecorder) Header ¶
func (mr *MockChatService_UploadImageClientMockRecorder) Header() *gomock.Call
Header indicates an expected call of Header.
func (*MockChatService_UploadImageClientMockRecorder) RecvMsg ¶
func (mr *MockChatService_UploadImageClientMockRecorder) RecvMsg(m interface{}) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockChatService_UploadImageClientMockRecorder) Send ¶
func (mr *MockChatService_UploadImageClientMockRecorder) Send(arg0 interface{}) *gomock.Call
Send indicates an expected call of Send.
func (*MockChatService_UploadImageClientMockRecorder) SendMsg ¶
func (mr *MockChatService_UploadImageClientMockRecorder) SendMsg(m interface{}) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockChatService_UploadImageClientMockRecorder) Trailer ¶
func (mr *MockChatService_UploadImageClientMockRecorder) Trailer() *gomock.Call
Trailer indicates an expected call of Trailer.
type MockChatService_UploadImageServer ¶
type MockChatService_UploadImageServer struct {
// contains filtered or unexported fields
}
MockChatService_UploadImageServer is a mock of ChatService_UploadImageServer interface.
func NewMockChatService_UploadImageServer ¶
func NewMockChatService_UploadImageServer(ctrl *gomock.Controller) *MockChatService_UploadImageServer
NewMockChatService_UploadImageServer creates a new mock instance.
func (*MockChatService_UploadImageServer) Context ¶
func (m *MockChatService_UploadImageServer) Context() context.Context
Context mocks base method.
func (*MockChatService_UploadImageServer) EXPECT ¶
func (m *MockChatService_UploadImageServer) EXPECT() *MockChatService_UploadImageServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockChatService_UploadImageServer) Recv ¶
func (m *MockChatService_UploadImageServer) Recv() (*chat.UploadChatImageRequest, error)
Recv mocks base method.
func (*MockChatService_UploadImageServer) RecvMsg ¶
func (m_2 *MockChatService_UploadImageServer) RecvMsg(m interface{}) error
RecvMsg mocks base method.
func (*MockChatService_UploadImageServer) SendAndClose ¶
func (m *MockChatService_UploadImageServer) SendAndClose(arg0 *chat.MessageResponse) error
SendAndClose mocks base method.
func (*MockChatService_UploadImageServer) SendHeader ¶
func (m *MockChatService_UploadImageServer) SendHeader(arg0 metadata.MD) error
SendHeader mocks base method.
func (*MockChatService_UploadImageServer) SendMsg ¶
func (m_2 *MockChatService_UploadImageServer) SendMsg(m interface{}) error
SendMsg mocks base method.
func (*MockChatService_UploadImageServer) SetHeader ¶
func (m *MockChatService_UploadImageServer) SetHeader(arg0 metadata.MD) error
SetHeader mocks base method.
func (*MockChatService_UploadImageServer) SetTrailer ¶
func (m *MockChatService_UploadImageServer) SetTrailer(arg0 metadata.MD)
SetTrailer mocks base method.
type MockChatService_UploadImageServerMockRecorder ¶
type MockChatService_UploadImageServerMockRecorder struct {
// contains filtered or unexported fields
}
MockChatService_UploadImageServerMockRecorder is the mock recorder for MockChatService_UploadImageServer.
func (*MockChatService_UploadImageServerMockRecorder) Context ¶
func (mr *MockChatService_UploadImageServerMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockChatService_UploadImageServerMockRecorder) Recv ¶
func (mr *MockChatService_UploadImageServerMockRecorder) Recv() *gomock.Call
Recv indicates an expected call of Recv.
func (*MockChatService_UploadImageServerMockRecorder) RecvMsg ¶
func (mr *MockChatService_UploadImageServerMockRecorder) RecvMsg(m interface{}) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockChatService_UploadImageServerMockRecorder) SendAndClose ¶
func (mr *MockChatService_UploadImageServerMockRecorder) SendAndClose(arg0 interface{}) *gomock.Call
SendAndClose indicates an expected call of SendAndClose.
func (*MockChatService_UploadImageServerMockRecorder) SendHeader ¶
func (mr *MockChatService_UploadImageServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call
SendHeader indicates an expected call of SendHeader.
func (*MockChatService_UploadImageServerMockRecorder) SendMsg ¶
func (mr *MockChatService_UploadImageServerMockRecorder) SendMsg(m interface{}) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockChatService_UploadImageServerMockRecorder) SetHeader ¶
func (mr *MockChatService_UploadImageServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call
SetHeader indicates an expected call of SetHeader.
func (*MockChatService_UploadImageServerMockRecorder) SetTrailer ¶
func (mr *MockChatService_UploadImageServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call
SetTrailer indicates an expected call of SetTrailer.
type MockUnsafeChatServiceServer ¶
type MockUnsafeChatServiceServer struct {
// contains filtered or unexported fields
}
MockUnsafeChatServiceServer is a mock of UnsafeChatServiceServer interface.
func NewMockUnsafeChatServiceServer ¶
func NewMockUnsafeChatServiceServer(ctrl *gomock.Controller) *MockUnsafeChatServiceServer
NewMockUnsafeChatServiceServer creates a new mock instance.
func (*MockUnsafeChatServiceServer) EXPECT ¶
func (m *MockUnsafeChatServiceServer) EXPECT() *MockUnsafeChatServiceServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUnsafeChatServiceServerMockRecorder ¶
type MockUnsafeChatServiceServerMockRecorder struct {
// contains filtered or unexported fields
}
MockUnsafeChatServiceServerMockRecorder is the mock recorder for MockUnsafeChatServiceServer.