Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockCallback
- func (m *MockCallback) AddAfterInvoke(arg0 rpc.CallbackFunc)
- func (m *MockCallback) AddBeforeInvoke(arg0 rpc.CallbackFunc)
- func (m *MockCallback) AfterInvoke(arg0 *rpc.RPCResponse) (*rpc.RPCResponse, error)
- func (m *MockCallback) BeforeInvoke(arg0 *rpc.RPCRequest) (*rpc.RPCRequest, error)
- func (m *MockCallback) EXPECT() *MockCallbackMockRecorder
- type MockCallbackMockRecorder
- func (mr *MockCallbackMockRecorder) AddAfterInvoke(arg0 interface{}) *gomock.Call
- func (mr *MockCallbackMockRecorder) AddBeforeInvoke(arg0 interface{}) *gomock.Call
- func (mr *MockCallbackMockRecorder) AfterInvoke(arg0 interface{}) *gomock.Call
- func (mr *MockCallbackMockRecorder) BeforeInvoke(arg0 interface{}) *gomock.Call
- type MockChannel
- type MockChannelMockRecorder
- type MockInvoker
- type MockInvokerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCallback ¶
type MockCallback struct {
// contains filtered or unexported fields
}
MockCallback is a mock of Callback interface.
func NewMockCallback ¶
func NewMockCallback(ctrl *gomock.Controller) *MockCallback
NewMockCallback creates a new mock instance.
func (*MockCallback) AddAfterInvoke ¶
func (m *MockCallback) AddAfterInvoke(arg0 rpc.CallbackFunc)
AddAfterInvoke mocks base method.
func (*MockCallback) AddBeforeInvoke ¶
func (m *MockCallback) AddBeforeInvoke(arg0 rpc.CallbackFunc)
AddBeforeInvoke mocks base method.
func (*MockCallback) AfterInvoke ¶
func (m *MockCallback) AfterInvoke(arg0 *rpc.RPCResponse) (*rpc.RPCResponse, error)
AfterInvoke mocks base method.
func (*MockCallback) BeforeInvoke ¶
func (m *MockCallback) BeforeInvoke(arg0 *rpc.RPCRequest) (*rpc.RPCRequest, error)
BeforeInvoke mocks base method.
func (*MockCallback) EXPECT ¶
func (m *MockCallback) EXPECT() *MockCallbackMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCallbackMockRecorder ¶
type MockCallbackMockRecorder struct {
// contains filtered or unexported fields
}
MockCallbackMockRecorder is the mock recorder for MockCallback.
func (*MockCallbackMockRecorder) AddAfterInvoke ¶
func (mr *MockCallbackMockRecorder) AddAfterInvoke(arg0 interface{}) *gomock.Call
AddAfterInvoke indicates an expected call of AddAfterInvoke.
func (*MockCallbackMockRecorder) AddBeforeInvoke ¶
func (mr *MockCallbackMockRecorder) AddBeforeInvoke(arg0 interface{}) *gomock.Call
AddBeforeInvoke indicates an expected call of AddBeforeInvoke.
func (*MockCallbackMockRecorder) AfterInvoke ¶
func (mr *MockCallbackMockRecorder) AfterInvoke(arg0 interface{}) *gomock.Call
AfterInvoke indicates an expected call of AfterInvoke.
func (*MockCallbackMockRecorder) BeforeInvoke ¶
func (mr *MockCallbackMockRecorder) BeforeInvoke(arg0 interface{}) *gomock.Call
BeforeInvoke indicates an expected call of BeforeInvoke.
type MockChannel ¶
type MockChannel struct {
// contains filtered or unexported fields
}
MockChannel is a mock of Channel interface.
func NewMockChannel ¶
func NewMockChannel(ctrl *gomock.Controller) *MockChannel
NewMockChannel creates a new mock instance.
func (*MockChannel) Do ¶
func (m *MockChannel) Do(arg0 *rpc.RPCRequest) (*rpc.RPCResponse, error)
Do mocks base method.
func (*MockChannel) EXPECT ¶
func (m *MockChannel) EXPECT() *MockChannelMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockChannelMockRecorder ¶
type MockChannelMockRecorder struct {
// contains filtered or unexported fields
}
MockChannelMockRecorder is the mock recorder for MockChannel.
func (*MockChannelMockRecorder) Do ¶
func (mr *MockChannelMockRecorder) Do(arg0 interface{}) *gomock.Call
Do indicates an expected call of Do.
type MockInvoker ¶
type MockInvoker struct {
// contains filtered or unexported fields
}
MockInvoker is a mock of Invoker interface.
func NewMockInvoker ¶
func NewMockInvoker(ctrl *gomock.Controller) *MockInvoker
NewMockInvoker creates a new mock instance.
func (*MockInvoker) EXPECT ¶
func (m *MockInvoker) EXPECT() *MockInvokerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInvoker) Init ¶
func (m *MockInvoker) Init(config rpc.RpcConfig) error
Init mocks base method.
func (*MockInvoker) Invoke ¶
func (m *MockInvoker) Invoke(ctx context.Context, req *rpc.RPCRequest) (*rpc.RPCResponse, error)
Invoke mocks base method.
type MockInvokerMockRecorder ¶
type MockInvokerMockRecorder struct {
// contains filtered or unexported fields
}
MockInvokerMockRecorder is the mock recorder for MockInvoker.
func (*MockInvokerMockRecorder) Init ¶
func (mr *MockInvokerMockRecorder) Init(config interface{}) *gomock.Call
Init indicates an expected call of Init.
func (*MockInvokerMockRecorder) Invoke ¶
func (mr *MockInvokerMockRecorder) Invoke(ctx, req interface{}) *gomock.Call
Invoke indicates an expected call of Invoke.