Documentation ¶
Overview ¶
Package mockrpcwrapper is a generated GoMock package.
Index ¶
- type MockRPCClient
- func (m *MockRPCClient) CheckValidity(req *rpcwrapper.Request, secret string) bool
- func (m *MockRPCClient) ContextList() []string
- func (m *MockRPCClient) DestroyRPCClient(contextID string)
- func (m *MockRPCClient) EXPECT() *MockRPCClientMockRecorder
- func (m *MockRPCClient) GetRPCClient(contextID string) (*rpcwrapper.RPCHdl, error)
- func (m *MockRPCClient) NewRPCClient(contextID, channel, rpcSecret string) error
- func (m *MockRPCClient) RemoteCall(contextID, methodName string, req *rpcwrapper.Request, ...) error
- type MockRPCClientMockRecorder
- func (mr *MockRPCClientMockRecorder) CheckValidity(req, secret interface{}) *gomock.Call
- func (mr *MockRPCClientMockRecorder) ContextList() *gomock.Call
- func (mr *MockRPCClientMockRecorder) DestroyRPCClient(contextID interface{}) *gomock.Call
- func (mr *MockRPCClientMockRecorder) GetRPCClient(contextID interface{}) *gomock.Call
- func (mr *MockRPCClientMockRecorder) NewRPCClient(contextID, channel, rpcSecret interface{}) *gomock.Call
- func (mr *MockRPCClientMockRecorder) RemoteCall(contextID, methodName, req, resp interface{}) *gomock.Call
- type MockRPCServer
- func (m *MockRPCServer) CheckValidity(req *rpcwrapper.Request, secret string) bool
- func (m *MockRPCServer) EXPECT() *MockRPCServerMockRecorder
- func (m *MockRPCServer) ProcessMessage(req *rpcwrapper.Request, secret string) bool
- func (m *MockRPCServer) StartServer(ctx context.Context, protocol, path string, handler interface{}) error
- type MockRPCServerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRPCClient ¶
type MockRPCClient struct {
// contains filtered or unexported fields
}
MockRPCClient is a mock of RPCClient interface nolint
func NewMockRPCClient ¶
func NewMockRPCClient(ctrl *gomock.Controller) *MockRPCClient
NewMockRPCClient creates a new mock instance nolint
func (*MockRPCClient) CheckValidity ¶
func (m *MockRPCClient) CheckValidity(req *rpcwrapper.Request, secret string) bool
CheckValidity mocks base method nolint
func (*MockRPCClient) ContextList ¶
func (m *MockRPCClient) ContextList() []string
ContextList mocks base method nolint
func (*MockRPCClient) DestroyRPCClient ¶
func (m *MockRPCClient) DestroyRPCClient(contextID string)
DestroyRPCClient mocks base method nolint
func (*MockRPCClient) EXPECT ¶
func (m *MockRPCClient) EXPECT() *MockRPCClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use nolint
func (*MockRPCClient) GetRPCClient ¶
func (m *MockRPCClient) GetRPCClient(contextID string) (*rpcwrapper.RPCHdl, error)
GetRPCClient mocks base method nolint
func (*MockRPCClient) NewRPCClient ¶
func (m *MockRPCClient) NewRPCClient(contextID, channel, rpcSecret string) error
NewRPCClient mocks base method nolint
func (*MockRPCClient) RemoteCall ¶
func (m *MockRPCClient) RemoteCall(contextID, methodName string, req *rpcwrapper.Request, resp *rpcwrapper.Response) error
RemoteCall mocks base method nolint
type MockRPCClientMockRecorder ¶
type MockRPCClientMockRecorder struct {
// contains filtered or unexported fields
}
MockRPCClientMockRecorder is the mock recorder for MockRPCClient nolint
func (*MockRPCClientMockRecorder) CheckValidity ¶
func (mr *MockRPCClientMockRecorder) CheckValidity(req, secret interface{}) *gomock.Call
CheckValidity indicates an expected call of CheckValidity nolint
func (*MockRPCClientMockRecorder) ContextList ¶
func (mr *MockRPCClientMockRecorder) ContextList() *gomock.Call
ContextList indicates an expected call of ContextList nolint
func (*MockRPCClientMockRecorder) DestroyRPCClient ¶
func (mr *MockRPCClientMockRecorder) DestroyRPCClient(contextID interface{}) *gomock.Call
DestroyRPCClient indicates an expected call of DestroyRPCClient nolint
func (*MockRPCClientMockRecorder) GetRPCClient ¶
func (mr *MockRPCClientMockRecorder) GetRPCClient(contextID interface{}) *gomock.Call
GetRPCClient indicates an expected call of GetRPCClient nolint
func (*MockRPCClientMockRecorder) NewRPCClient ¶
func (mr *MockRPCClientMockRecorder) NewRPCClient(contextID, channel, rpcSecret interface{}) *gomock.Call
NewRPCClient indicates an expected call of NewRPCClient nolint
func (*MockRPCClientMockRecorder) RemoteCall ¶
func (mr *MockRPCClientMockRecorder) RemoteCall(contextID, methodName, req, resp interface{}) *gomock.Call
RemoteCall indicates an expected call of RemoteCall nolint
type MockRPCServer ¶
type MockRPCServer struct {
// contains filtered or unexported fields
}
MockRPCServer is a mock of RPCServer interface nolint
func NewMockRPCServer ¶
func NewMockRPCServer(ctrl *gomock.Controller) *MockRPCServer
NewMockRPCServer creates a new mock instance nolint
func (*MockRPCServer) CheckValidity ¶
func (m *MockRPCServer) CheckValidity(req *rpcwrapper.Request, secret string) bool
CheckValidity mocks base method nolint
func (*MockRPCServer) EXPECT ¶
func (m *MockRPCServer) EXPECT() *MockRPCServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use nolint
func (*MockRPCServer) ProcessMessage ¶
func (m *MockRPCServer) ProcessMessage(req *rpcwrapper.Request, secret string) bool
ProcessMessage mocks base method nolint
type MockRPCServerMockRecorder ¶
type MockRPCServerMockRecorder struct {
// contains filtered or unexported fields
}
MockRPCServerMockRecorder is the mock recorder for MockRPCServer nolint
func (*MockRPCServerMockRecorder) CheckValidity ¶
func (mr *MockRPCServerMockRecorder) CheckValidity(req, secret interface{}) *gomock.Call
CheckValidity indicates an expected call of CheckValidity nolint
func (*MockRPCServerMockRecorder) ProcessMessage ¶
func (mr *MockRPCServerMockRecorder) ProcessMessage(req, secret interface{}) *gomock.Call
ProcessMessage indicates an expected call of ProcessMessage nolint
func (*MockRPCServerMockRecorder) StartServer ¶
func (mr *MockRPCServerMockRecorder) StartServer(ctx, protocol, path, handler interface{}) *gomock.Call
StartServer indicates an expected call of StartServer nolint