Documentation ¶
Overview ¶
Package mock_api is a generated GoMock package.
Index ¶
- type MockConsumerAPI
- func (m *MockConsumerAPI) Destroy()
- func (m *MockConsumerAPI) EXPECT() *MockConsumerAPIMockRecorder
- func (m *MockConsumerAPI) GetAllInstances(arg0 *api.GetAllInstancesRequest) (*model.InstancesResponse, error)
- func (m *MockConsumerAPI) GetInstances(arg0 *api.GetInstancesRequest) (*model.InstancesResponse, error)
- func (m *MockConsumerAPI) GetOneInstance(arg0 *api.GetOneInstanceRequest) (*model.OneInstanceResponse, error)
- func (m *MockConsumerAPI) GetRouteRule(arg0 *api.GetServiceRuleRequest) (*model.ServiceRuleResponse, error)
- func (m *MockConsumerAPI) GetServices(arg0 *api.GetServicesRequest) (*model.ServicesResponse, error)
- func (m *MockConsumerAPI) InitCalleeService(arg0 *api.InitCalleeServiceRequest) error
- func (m *MockConsumerAPI) SDKContext() api.SDKContext
- func (m *MockConsumerAPI) UpdateServiceCallResult(arg0 *api.ServiceCallResult) error
- func (m *MockConsumerAPI) WatchAllInstances(arg0 *api.WatchAllInstancesRequest) (*model.WatchAllInstancesResponse, error)
- func (m *MockConsumerAPI) WatchAllServices(arg0 *api.WatchAllServicesRequest) (*model.WatchAllServicesResponse, error)
- func (m *MockConsumerAPI) WatchService(arg0 *api.WatchServiceRequest) (*model.WatchServiceResponse, error)
- type MockConsumerAPIMockRecorder
- func (mr *MockConsumerAPIMockRecorder) Destroy() *gomock.Call
- func (mr *MockConsumerAPIMockRecorder) GetAllInstances(arg0 interface{}) *gomock.Call
- func (mr *MockConsumerAPIMockRecorder) GetInstances(arg0 interface{}) *gomock.Call
- func (mr *MockConsumerAPIMockRecorder) GetOneInstance(arg0 interface{}) *gomock.Call
- func (mr *MockConsumerAPIMockRecorder) GetRouteRule(arg0 interface{}) *gomock.Call
- func (mr *MockConsumerAPIMockRecorder) GetServices(arg0 interface{}) *gomock.Call
- func (mr *MockConsumerAPIMockRecorder) InitCalleeService(arg0 interface{}) *gomock.Call
- func (mr *MockConsumerAPIMockRecorder) SDKContext() *gomock.Call
- func (mr *MockConsumerAPIMockRecorder) UpdateServiceCallResult(arg0 interface{}) *gomock.Call
- func (mr *MockConsumerAPIMockRecorder) WatchAllInstances(arg0 interface{}) *gomock.Call
- func (mr *MockConsumerAPIMockRecorder) WatchAllServices(arg0 interface{}) *gomock.Call
- func (mr *MockConsumerAPIMockRecorder) WatchService(arg0 interface{}) *gomock.Call
- type MockProviderAPI
- func (m *MockProviderAPI) Deregister(arg0 *api.InstanceDeRegisterRequest) error
- func (m *MockProviderAPI) Destroy()
- func (m *MockProviderAPI) EXPECT() *MockProviderAPIMockRecorder
- func (m *MockProviderAPI) Heartbeat(arg0 *api.InstanceHeartbeatRequest) error
- func (m *MockProviderAPI) Register(arg0 *api.InstanceRegisterRequest) (*model.InstanceRegisterResponse, error)
- func (m *MockProviderAPI) RegisterInstance(arg0 *api.InstanceRegisterRequest) (*model.InstanceRegisterResponse, error)
- func (m *MockProviderAPI) SDKContext() api.SDKContext
- type MockProviderAPIMockRecorder
- func (mr *MockProviderAPIMockRecorder) Deregister(arg0 interface{}) *gomock.Call
- func (mr *MockProviderAPIMockRecorder) Destroy() *gomock.Call
- func (mr *MockProviderAPIMockRecorder) Heartbeat(arg0 interface{}) *gomock.Call
- func (mr *MockProviderAPIMockRecorder) Register(arg0 interface{}) *gomock.Call
- func (mr *MockProviderAPIMockRecorder) RegisterInstance(arg0 interface{}) *gomock.Call
- func (mr *MockProviderAPIMockRecorder) SDKContext() *gomock.Call
- type MockSDKContext
- func (m *MockSDKContext) Destroy()
- func (m *MockSDKContext) EXPECT() *MockSDKContextMockRecorder
- func (m *MockSDKContext) GetConfig() config.Configuration
- func (m *MockSDKContext) GetEngine() model.Engine
- func (m *MockSDKContext) GetPlugins() plugin.Manager
- func (m *MockSDKContext) GetValueContext() model.ValueContext
- func (m *MockSDKContext) IsDestroyed() bool
- type MockSDKContextMockRecorder
- func (mr *MockSDKContextMockRecorder) Destroy() *gomock.Call
- func (mr *MockSDKContextMockRecorder) GetConfig() *gomock.Call
- func (mr *MockSDKContextMockRecorder) GetEngine() *gomock.Call
- func (mr *MockSDKContextMockRecorder) GetPlugins() *gomock.Call
- func (mr *MockSDKContextMockRecorder) GetValueContext() *gomock.Call
- func (mr *MockSDKContextMockRecorder) IsDestroyed() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConsumerAPI ¶
type MockConsumerAPI struct {
// contains filtered or unexported fields
}
MockConsumerAPI is a mock of ConsumerAPI interface.
func NewMockConsumerAPI ¶
func NewMockConsumerAPI(ctrl *gomock.Controller) *MockConsumerAPI
NewMockConsumerAPI creates a new mock instance.
func (*MockConsumerAPI) EXPECT ¶
func (m *MockConsumerAPI) EXPECT() *MockConsumerAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConsumerAPI) GetAllInstances ¶
func (m *MockConsumerAPI) GetAllInstances(arg0 *api.GetAllInstancesRequest) (*model.InstancesResponse, error)
GetAllInstances mocks base method.
func (*MockConsumerAPI) GetInstances ¶
func (m *MockConsumerAPI) GetInstances(arg0 *api.GetInstancesRequest) (*model.InstancesResponse, error)
GetInstances mocks base method.
func (*MockConsumerAPI) GetOneInstance ¶
func (m *MockConsumerAPI) GetOneInstance(arg0 *api.GetOneInstanceRequest) (*model.OneInstanceResponse, error)
GetOneInstance mocks base method.
func (*MockConsumerAPI) GetRouteRule ¶
func (m *MockConsumerAPI) GetRouteRule(arg0 *api.GetServiceRuleRequest) (*model.ServiceRuleResponse, error)
GetRouteRule mocks base method.
func (*MockConsumerAPI) GetServices ¶
func (m *MockConsumerAPI) GetServices(arg0 *api.GetServicesRequest) (*model.ServicesResponse, error)
GetServices mocks base method.
func (*MockConsumerAPI) InitCalleeService ¶
func (m *MockConsumerAPI) InitCalleeService(arg0 *api.InitCalleeServiceRequest) error
InitCalleeService mocks base method.
func (*MockConsumerAPI) SDKContext ¶
func (m *MockConsumerAPI) SDKContext() api.SDKContext
SDKContext mocks base method.
func (*MockConsumerAPI) UpdateServiceCallResult ¶
func (m *MockConsumerAPI) UpdateServiceCallResult(arg0 *api.ServiceCallResult) error
UpdateServiceCallResult mocks base method.
func (*MockConsumerAPI) WatchAllInstances ¶
func (m *MockConsumerAPI) WatchAllInstances(arg0 *api.WatchAllInstancesRequest) (*model.WatchAllInstancesResponse, error)
WatchAllInstances mocks base method.
func (*MockConsumerAPI) WatchAllServices ¶
func (m *MockConsumerAPI) WatchAllServices(arg0 *api.WatchAllServicesRequest) (*model.WatchAllServicesResponse, error)
WatchAllServices mocks base method.
func (*MockConsumerAPI) WatchService ¶
func (m *MockConsumerAPI) WatchService(arg0 *api.WatchServiceRequest) (*model.WatchServiceResponse, error)
WatchService mocks base method.
type MockConsumerAPIMockRecorder ¶
type MockConsumerAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockConsumerAPIMockRecorder is the mock recorder for MockConsumerAPI.
func (*MockConsumerAPIMockRecorder) Destroy ¶
func (mr *MockConsumerAPIMockRecorder) Destroy() *gomock.Call
Destroy indicates an expected call of Destroy.
func (*MockConsumerAPIMockRecorder) GetAllInstances ¶
func (mr *MockConsumerAPIMockRecorder) GetAllInstances(arg0 interface{}) *gomock.Call
GetAllInstances indicates an expected call of GetAllInstances.
func (*MockConsumerAPIMockRecorder) GetInstances ¶
func (mr *MockConsumerAPIMockRecorder) GetInstances(arg0 interface{}) *gomock.Call
GetInstances indicates an expected call of GetInstances.
func (*MockConsumerAPIMockRecorder) GetOneInstance ¶
func (mr *MockConsumerAPIMockRecorder) GetOneInstance(arg0 interface{}) *gomock.Call
GetOneInstance indicates an expected call of GetOneInstance.
func (*MockConsumerAPIMockRecorder) GetRouteRule ¶
func (mr *MockConsumerAPIMockRecorder) GetRouteRule(arg0 interface{}) *gomock.Call
GetRouteRule indicates an expected call of GetRouteRule.
func (*MockConsumerAPIMockRecorder) GetServices ¶
func (mr *MockConsumerAPIMockRecorder) GetServices(arg0 interface{}) *gomock.Call
GetServices indicates an expected call of GetServices.
func (*MockConsumerAPIMockRecorder) InitCalleeService ¶
func (mr *MockConsumerAPIMockRecorder) InitCalleeService(arg0 interface{}) *gomock.Call
InitCalleeService indicates an expected call of InitCalleeService.
func (*MockConsumerAPIMockRecorder) SDKContext ¶
func (mr *MockConsumerAPIMockRecorder) SDKContext() *gomock.Call
SDKContext indicates an expected call of SDKContext.
func (*MockConsumerAPIMockRecorder) UpdateServiceCallResult ¶
func (mr *MockConsumerAPIMockRecorder) UpdateServiceCallResult(arg0 interface{}) *gomock.Call
UpdateServiceCallResult indicates an expected call of UpdateServiceCallResult.
func (*MockConsumerAPIMockRecorder) WatchAllInstances ¶
func (mr *MockConsumerAPIMockRecorder) WatchAllInstances(arg0 interface{}) *gomock.Call
WatchAllInstances indicates an expected call of WatchAllInstances.
func (*MockConsumerAPIMockRecorder) WatchAllServices ¶
func (mr *MockConsumerAPIMockRecorder) WatchAllServices(arg0 interface{}) *gomock.Call
WatchAllServices indicates an expected call of WatchAllServices.
func (*MockConsumerAPIMockRecorder) WatchService ¶
func (mr *MockConsumerAPIMockRecorder) WatchService(arg0 interface{}) *gomock.Call
WatchService indicates an expected call of WatchService.
type MockProviderAPI ¶
type MockProviderAPI struct {
// contains filtered or unexported fields
}
MockProviderAPI is a mock of ProviderAPI interface.
func NewMockProviderAPI ¶
func NewMockProviderAPI(ctrl *gomock.Controller) *MockProviderAPI
NewMockProviderAPI creates a new mock instance.
func (*MockProviderAPI) Deregister ¶
func (m *MockProviderAPI) Deregister(arg0 *api.InstanceDeRegisterRequest) error
Deregister mocks base method.
func (*MockProviderAPI) EXPECT ¶
func (m *MockProviderAPI) EXPECT() *MockProviderAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProviderAPI) Heartbeat ¶
func (m *MockProviderAPI) Heartbeat(arg0 *api.InstanceHeartbeatRequest) error
Heartbeat mocks base method.
func (*MockProviderAPI) Register ¶
func (m *MockProviderAPI) Register(arg0 *api.InstanceRegisterRequest) (*model.InstanceRegisterResponse, error)
Register mocks base method.
func (*MockProviderAPI) RegisterInstance ¶
func (m *MockProviderAPI) RegisterInstance(arg0 *api.InstanceRegisterRequest) (*model.InstanceRegisterResponse, error)
RegisterInstance mocks base method.
func (*MockProviderAPI) SDKContext ¶
func (m *MockProviderAPI) SDKContext() api.SDKContext
SDKContext mocks base method.
type MockProviderAPIMockRecorder ¶
type MockProviderAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockProviderAPIMockRecorder is the mock recorder for MockProviderAPI.
func (*MockProviderAPIMockRecorder) Deregister ¶
func (mr *MockProviderAPIMockRecorder) Deregister(arg0 interface{}) *gomock.Call
Deregister indicates an expected call of Deregister.
func (*MockProviderAPIMockRecorder) Destroy ¶
func (mr *MockProviderAPIMockRecorder) Destroy() *gomock.Call
Destroy indicates an expected call of Destroy.
func (*MockProviderAPIMockRecorder) Heartbeat ¶
func (mr *MockProviderAPIMockRecorder) Heartbeat(arg0 interface{}) *gomock.Call
Heartbeat indicates an expected call of Heartbeat.
func (*MockProviderAPIMockRecorder) Register ¶
func (mr *MockProviderAPIMockRecorder) Register(arg0 interface{}) *gomock.Call
Register indicates an expected call of Register.
func (*MockProviderAPIMockRecorder) RegisterInstance ¶
func (mr *MockProviderAPIMockRecorder) RegisterInstance(arg0 interface{}) *gomock.Call
RegisterInstance indicates an expected call of RegisterInstance.
func (*MockProviderAPIMockRecorder) SDKContext ¶
func (mr *MockProviderAPIMockRecorder) SDKContext() *gomock.Call
SDKContext indicates an expected call of SDKContext.
type MockSDKContext ¶
type MockSDKContext struct {
// contains filtered or unexported fields
}
MockSDKContext is a mock of SDKContext interface.
func NewMockSDKContext ¶
func NewMockSDKContext(ctrl *gomock.Controller) *MockSDKContext
NewMockSDKContext creates a new mock instance.
func (*MockSDKContext) EXPECT ¶
func (m *MockSDKContext) EXPECT() *MockSDKContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSDKContext) GetConfig ¶
func (m *MockSDKContext) GetConfig() config.Configuration
GetConfig mocks base method.
func (*MockSDKContext) GetEngine ¶
func (m *MockSDKContext) GetEngine() model.Engine
GetEngine mocks base method.
func (*MockSDKContext) GetPlugins ¶
func (m *MockSDKContext) GetPlugins() plugin.Manager
GetPlugins mocks base method.
func (*MockSDKContext) GetValueContext ¶
func (m *MockSDKContext) GetValueContext() model.ValueContext
GetValueContext mocks base method.
func (*MockSDKContext) IsDestroyed ¶
func (m *MockSDKContext) IsDestroyed() bool
IsDestroyed mocks base method.
type MockSDKContextMockRecorder ¶
type MockSDKContextMockRecorder struct {
// contains filtered or unexported fields
}
MockSDKContextMockRecorder is the mock recorder for MockSDKContext.
func (*MockSDKContextMockRecorder) Destroy ¶
func (mr *MockSDKContextMockRecorder) Destroy() *gomock.Call
Destroy indicates an expected call of Destroy.
func (*MockSDKContextMockRecorder) GetConfig ¶
func (mr *MockSDKContextMockRecorder) GetConfig() *gomock.Call
GetConfig indicates an expected call of GetConfig.
func (*MockSDKContextMockRecorder) GetEngine ¶
func (mr *MockSDKContextMockRecorder) GetEngine() *gomock.Call
GetEngine indicates an expected call of GetEngine.
func (*MockSDKContextMockRecorder) GetPlugins ¶
func (mr *MockSDKContextMockRecorder) GetPlugins() *gomock.Call
GetPlugins indicates an expected call of GetPlugins.
func (*MockSDKContextMockRecorder) GetValueContext ¶
func (mr *MockSDKContextMockRecorder) GetValueContext() *gomock.Call
GetValueContext indicates an expected call of GetValueContext.
func (*MockSDKContextMockRecorder) IsDestroyed ¶
func (mr *MockSDKContextMockRecorder) IsDestroyed() *gomock.Call
IsDestroyed indicates an expected call of IsDestroyed.