Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockChatServiceClient
- func (m *MockChatServiceClient) EXPECT() *MockChatServiceClientMockRecorder
- func (m *MockChatServiceClient) Send(ctx context.Context, in *chat.SendRequest, opts ...grpc.CallOption) (*chat.SendResponse, error)
- func (m *MockChatServiceClient) Subscribe(ctx context.Context, in *chat.SubscribeRequest, opts ...grpc.CallOption) (chat.ChatService_SubscribeClient, error)
- type MockChatServiceClientMockRecorder
- type MockChatServiceServer
- func (m *MockChatServiceServer) EXPECT() *MockChatServiceServerMockRecorder
- func (m *MockChatServiceServer) Send(arg0 context.Context, arg1 *chat.SendRequest) (*chat.SendResponse, error)
- func (m *MockChatServiceServer) Subscribe(arg0 *chat.SubscribeRequest, arg1 chat.ChatService_SubscribeServer) error
- type MockChatServiceServerMockRecorder
- type MockChatService_SubscribeClient
- func (m *MockChatService_SubscribeClient) CloseSend() error
- func (m *MockChatService_SubscribeClient) Context() context.Context
- func (m *MockChatService_SubscribeClient) EXPECT() *MockChatService_SubscribeClientMockRecorder
- func (m *MockChatService_SubscribeClient) Header() (metadata.MD, error)
- func (m *MockChatService_SubscribeClient) Recv() (*chat.SubscribeResponse, error)
- func (m_2 *MockChatService_SubscribeClient) RecvMsg(m interface{}) error
- func (m_2 *MockChatService_SubscribeClient) SendMsg(m interface{}) error
- func (m *MockChatService_SubscribeClient) Trailer() metadata.MD
- type MockChatService_SubscribeClientMockRecorder
- func (mr *MockChatService_SubscribeClientMockRecorder) CloseSend() *gomock.Call
- func (mr *MockChatService_SubscribeClientMockRecorder) Context() *gomock.Call
- func (mr *MockChatService_SubscribeClientMockRecorder) Header() *gomock.Call
- func (mr *MockChatService_SubscribeClientMockRecorder) Recv() *gomock.Call
- func (mr *MockChatService_SubscribeClientMockRecorder) RecvMsg(m interface{}) *gomock.Call
- func (mr *MockChatService_SubscribeClientMockRecorder) SendMsg(m interface{}) *gomock.Call
- func (mr *MockChatService_SubscribeClientMockRecorder) Trailer() *gomock.Call
- type MockChatService_SubscribeServer
- func (m *MockChatService_SubscribeServer) Context() context.Context
- func (m *MockChatService_SubscribeServer) EXPECT() *MockChatService_SubscribeServerMockRecorder
- func (m_2 *MockChatService_SubscribeServer) RecvMsg(m interface{}) error
- func (m *MockChatService_SubscribeServer) Send(arg0 *chat.SubscribeResponse) error
- func (m *MockChatService_SubscribeServer) SendHeader(arg0 metadata.MD) error
- func (m_2 *MockChatService_SubscribeServer) SendMsg(m interface{}) error
- func (m *MockChatService_SubscribeServer) SetHeader(arg0 metadata.MD) error
- func (m *MockChatService_SubscribeServer) SetTrailer(arg0 metadata.MD)
- type MockChatService_SubscribeServerMockRecorder
- func (mr *MockChatService_SubscribeServerMockRecorder) Context() *gomock.Call
- func (mr *MockChatService_SubscribeServerMockRecorder) RecvMsg(m interface{}) *gomock.Call
- func (mr *MockChatService_SubscribeServerMockRecorder) Send(arg0 interface{}) *gomock.Call
- func (mr *MockChatService_SubscribeServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call
- func (mr *MockChatService_SubscribeServerMockRecorder) SendMsg(m interface{}) *gomock.Call
- func (mr *MockChatService_SubscribeServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call
- func (mr *MockChatService_SubscribeServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call
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) EXPECT ¶
func (m *MockChatServiceClient) EXPECT() *MockChatServiceClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockChatServiceClient) Send ¶
func (m *MockChatServiceClient) Send(ctx context.Context, in *chat.SendRequest, opts ...grpc.CallOption) (*chat.SendResponse, error)
Send mocks base method
func (*MockChatServiceClient) Subscribe ¶
func (m *MockChatServiceClient) Subscribe(ctx context.Context, in *chat.SubscribeRequest, opts ...grpc.CallOption) (chat.ChatService_SubscribeClient, error)
Subscribe mocks base method
type MockChatServiceClientMockRecorder ¶
type MockChatServiceClientMockRecorder struct {
// contains filtered or unexported fields
}
MockChatServiceClientMockRecorder is the mock recorder for MockChatServiceClient
func (*MockChatServiceClientMockRecorder) Send ¶
func (mr *MockChatServiceClientMockRecorder) Send(ctx, in interface{}, opts ...interface{}) *gomock.Call
Send indicates an expected call of Send
func (*MockChatServiceClientMockRecorder) Subscribe ¶
func (mr *MockChatServiceClientMockRecorder) Subscribe(ctx, in interface{}, opts ...interface{}) *gomock.Call
Subscribe indicates an expected call of Subscribe
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) EXPECT ¶
func (m *MockChatServiceServer) EXPECT() *MockChatServiceServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockChatServiceServer) Send ¶
func (m *MockChatServiceServer) Send(arg0 context.Context, arg1 *chat.SendRequest) (*chat.SendResponse, error)
Send mocks base method
func (*MockChatServiceServer) Subscribe ¶
func (m *MockChatServiceServer) Subscribe(arg0 *chat.SubscribeRequest, arg1 chat.ChatService_SubscribeServer) error
Subscribe mocks base method
type MockChatServiceServerMockRecorder ¶
type MockChatServiceServerMockRecorder struct {
// contains filtered or unexported fields
}
MockChatServiceServerMockRecorder is the mock recorder for MockChatServiceServer
func (*MockChatServiceServerMockRecorder) Send ¶
func (mr *MockChatServiceServerMockRecorder) Send(arg0, arg1 interface{}) *gomock.Call
Send indicates an expected call of Send
func (*MockChatServiceServerMockRecorder) Subscribe ¶
func (mr *MockChatServiceServerMockRecorder) Subscribe(arg0, arg1 interface{}) *gomock.Call
Subscribe indicates an expected call of Subscribe
type MockChatService_SubscribeClient ¶
type MockChatService_SubscribeClient struct {
// contains filtered or unexported fields
}
MockChatService_SubscribeClient is a mock of ChatService_SubscribeClient interface
func NewMockChatService_SubscribeClient ¶
func NewMockChatService_SubscribeClient(ctrl *gomock.Controller) *MockChatService_SubscribeClient
NewMockChatService_SubscribeClient creates a new mock instance
func (*MockChatService_SubscribeClient) CloseSend ¶
func (m *MockChatService_SubscribeClient) CloseSend() error
CloseSend mocks base method
func (*MockChatService_SubscribeClient) Context ¶
func (m *MockChatService_SubscribeClient) Context() context.Context
Context mocks base method
func (*MockChatService_SubscribeClient) EXPECT ¶
func (m *MockChatService_SubscribeClient) EXPECT() *MockChatService_SubscribeClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockChatService_SubscribeClient) Header ¶
func (m *MockChatService_SubscribeClient) Header() (metadata.MD, error)
Header mocks base method
func (*MockChatService_SubscribeClient) Recv ¶
func (m *MockChatService_SubscribeClient) Recv() (*chat.SubscribeResponse, error)
Recv mocks base method
func (*MockChatService_SubscribeClient) RecvMsg ¶
func (m_2 *MockChatService_SubscribeClient) RecvMsg(m interface{}) error
RecvMsg mocks base method
func (*MockChatService_SubscribeClient) SendMsg ¶
func (m_2 *MockChatService_SubscribeClient) SendMsg(m interface{}) error
SendMsg mocks base method
func (*MockChatService_SubscribeClient) Trailer ¶
func (m *MockChatService_SubscribeClient) Trailer() metadata.MD
Trailer mocks base method
type MockChatService_SubscribeClientMockRecorder ¶
type MockChatService_SubscribeClientMockRecorder struct {
// contains filtered or unexported fields
}
MockChatService_SubscribeClientMockRecorder is the mock recorder for MockChatService_SubscribeClient
func (*MockChatService_SubscribeClientMockRecorder) CloseSend ¶
func (mr *MockChatService_SubscribeClientMockRecorder) CloseSend() *gomock.Call
CloseSend indicates an expected call of CloseSend
func (*MockChatService_SubscribeClientMockRecorder) Context ¶
func (mr *MockChatService_SubscribeClientMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context
func (*MockChatService_SubscribeClientMockRecorder) Header ¶
func (mr *MockChatService_SubscribeClientMockRecorder) Header() *gomock.Call
Header indicates an expected call of Header
func (*MockChatService_SubscribeClientMockRecorder) Recv ¶
func (mr *MockChatService_SubscribeClientMockRecorder) Recv() *gomock.Call
Recv indicates an expected call of Recv
func (*MockChatService_SubscribeClientMockRecorder) RecvMsg ¶
func (mr *MockChatService_SubscribeClientMockRecorder) RecvMsg(m interface{}) *gomock.Call
RecvMsg indicates an expected call of RecvMsg
func (*MockChatService_SubscribeClientMockRecorder) SendMsg ¶
func (mr *MockChatService_SubscribeClientMockRecorder) SendMsg(m interface{}) *gomock.Call
SendMsg indicates an expected call of SendMsg
func (*MockChatService_SubscribeClientMockRecorder) Trailer ¶
func (mr *MockChatService_SubscribeClientMockRecorder) Trailer() *gomock.Call
Trailer indicates an expected call of Trailer
type MockChatService_SubscribeServer ¶
type MockChatService_SubscribeServer struct {
// contains filtered or unexported fields
}
MockChatService_SubscribeServer is a mock of ChatService_SubscribeServer interface
func NewMockChatService_SubscribeServer ¶
func NewMockChatService_SubscribeServer(ctrl *gomock.Controller) *MockChatService_SubscribeServer
NewMockChatService_SubscribeServer creates a new mock instance
func (*MockChatService_SubscribeServer) Context ¶
func (m *MockChatService_SubscribeServer) Context() context.Context
Context mocks base method
func (*MockChatService_SubscribeServer) EXPECT ¶
func (m *MockChatService_SubscribeServer) EXPECT() *MockChatService_SubscribeServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockChatService_SubscribeServer) RecvMsg ¶
func (m_2 *MockChatService_SubscribeServer) RecvMsg(m interface{}) error
RecvMsg mocks base method
func (*MockChatService_SubscribeServer) Send ¶
func (m *MockChatService_SubscribeServer) Send(arg0 *chat.SubscribeResponse) error
Send mocks base method
func (*MockChatService_SubscribeServer) SendHeader ¶
func (m *MockChatService_SubscribeServer) SendHeader(arg0 metadata.MD) error
SendHeader mocks base method
func (*MockChatService_SubscribeServer) SendMsg ¶
func (m_2 *MockChatService_SubscribeServer) SendMsg(m interface{}) error
SendMsg mocks base method
func (*MockChatService_SubscribeServer) SetHeader ¶
func (m *MockChatService_SubscribeServer) SetHeader(arg0 metadata.MD) error
SetHeader mocks base method
func (*MockChatService_SubscribeServer) SetTrailer ¶
func (m *MockChatService_SubscribeServer) SetTrailer(arg0 metadata.MD)
SetTrailer mocks base method
type MockChatService_SubscribeServerMockRecorder ¶
type MockChatService_SubscribeServerMockRecorder struct {
// contains filtered or unexported fields
}
MockChatService_SubscribeServerMockRecorder is the mock recorder for MockChatService_SubscribeServer
func (*MockChatService_SubscribeServerMockRecorder) Context ¶
func (mr *MockChatService_SubscribeServerMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context
func (*MockChatService_SubscribeServerMockRecorder) RecvMsg ¶
func (mr *MockChatService_SubscribeServerMockRecorder) RecvMsg(m interface{}) *gomock.Call
RecvMsg indicates an expected call of RecvMsg
func (*MockChatService_SubscribeServerMockRecorder) Send ¶
func (mr *MockChatService_SubscribeServerMockRecorder) Send(arg0 interface{}) *gomock.Call
Send indicates an expected call of Send
func (*MockChatService_SubscribeServerMockRecorder) SendHeader ¶
func (mr *MockChatService_SubscribeServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call
SendHeader indicates an expected call of SendHeader
func (*MockChatService_SubscribeServerMockRecorder) SendMsg ¶
func (mr *MockChatService_SubscribeServerMockRecorder) SendMsg(m interface{}) *gomock.Call
SendMsg indicates an expected call of SendMsg
func (*MockChatService_SubscribeServerMockRecorder) SetHeader ¶
func (mr *MockChatService_SubscribeServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call
SetHeader indicates an expected call of SetHeader
func (*MockChatService_SubscribeServerMockRecorder) SetTrailer ¶
func (mr *MockChatService_SubscribeServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call
SetTrailer indicates an expected call of SetTrailer