naming_proxy

package
v2.5.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package naming_proxy is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type INamingProxy

type INamingProxy interface {
	RegisterInstance(serviceName string, groupName string, instance model.Instance) (bool, error)

	BatchRegisterInstance(serviceName string, groupName string, instances []model.Instance) (bool, error)

	DeregisterInstance(serviceName string, groupName string, instance model.Instance) (bool, error)

	GetServiceList(pageNo uint32, pageSize uint32, groupName, namespaceId string, selector *model.ExpressionSelector) (model.ServiceList, error)

	ServerHealthy() bool

	QueryInstancesOfService(serviceName, groupName, clusters string, udpPort int, healthyOnly bool) (*model.Service, error)

	Subscribe(serviceName, groupName, clusters string) (model.Service, error)

	Unsubscribe(serviceName, groupName, clusters string) error

	CloseClient()
}

INamingProxy ...

type MockINamingProxy

type MockINamingProxy struct {
	// contains filtered or unexported fields
}

MockINamingProxy is a mock of INamingProxy interface.

func NewMockINamingProxy

func NewMockINamingProxy(ctrl *gomock.Controller) *MockINamingProxy

NewMockINamingProxy creates a new mock instance.

func (*MockINamingProxy) BatchRegisterInstance

func (m *MockINamingProxy) BatchRegisterInstance(serviceName, groupName string, instances []model.Instance) (bool, error)

BatchRegisterInstance mocks base method.

func (*MockINamingProxy) CloseClient

func (m *MockINamingProxy) CloseClient()

CloseClient mocks base method.

func (*MockINamingProxy) DeregisterInstance

func (m *MockINamingProxy) DeregisterInstance(serviceName, groupName string, instance model.Instance) (bool, error)

DeregisterInstance mocks base method.

func (*MockINamingProxy) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockINamingProxy) GetServiceList

func (m *MockINamingProxy) GetServiceList(pageNo, pageSize uint32, groupName, namespaceId string, selector *model.ExpressionSelector) (model.ServiceList, error)

GetServiceList mocks base method.

func (*MockINamingProxy) QueryInstancesOfService

func (m *MockINamingProxy) QueryInstancesOfService(serviceName, groupName, clusters string, udpPort int, healthyOnly bool) (*model.Service, error)

QueryInstancesOfService mocks base method.

func (*MockINamingProxy) RegisterInstance

func (m *MockINamingProxy) RegisterInstance(serviceName, groupName string, instance model.Instance) (bool, error)

RegisterInstance mocks base method.

func (*MockINamingProxy) ServerHealthy

func (m *MockINamingProxy) ServerHealthy() bool

ServerHealthy mocks base method.

func (*MockINamingProxy) Subscribe

func (m *MockINamingProxy) Subscribe(serviceName, groupName, clusters string) (model.Service, error)

Subscribe mocks base method.

func (*MockINamingProxy) Unsubscribe

func (m *MockINamingProxy) Unsubscribe(serviceName, groupName, clusters string) error

Unsubscribe mocks base method.

type MockINamingProxyMockRecorder

type MockINamingProxyMockRecorder struct {
	// contains filtered or unexported fields
}

MockINamingProxyMockRecorder is the mock recorder for MockINamingProxy.

func (*MockINamingProxyMockRecorder) BatchRegisterInstance

func (mr *MockINamingProxyMockRecorder) BatchRegisterInstance(serviceName, groupName, instances interface{}) *gomock.Call

BatchRegisterInstance indicates an expected call of BatchRegisterInstance.

func (*MockINamingProxyMockRecorder) CloseClient

func (mr *MockINamingProxyMockRecorder) CloseClient() *gomock.Call

CloseClient indicates an expected call of CloseClient.

func (*MockINamingProxyMockRecorder) DeregisterInstance

func (mr *MockINamingProxyMockRecorder) DeregisterInstance(serviceName, groupName, instance interface{}) *gomock.Call

DeregisterInstance indicates an expected call of DeregisterInstance.

func (*MockINamingProxyMockRecorder) GetServiceList

func (mr *MockINamingProxyMockRecorder) GetServiceList(pageNo, pageSize, groupName, namespaceId, selector interface{}) *gomock.Call

GetServiceList indicates an expected call of GetServiceList.

func (*MockINamingProxyMockRecorder) QueryInstancesOfService

func (mr *MockINamingProxyMockRecorder) QueryInstancesOfService(serviceName, groupName, clusters, udpPort, healthyOnly interface{}) *gomock.Call

QueryInstancesOfService indicates an expected call of QueryInstancesOfService.

func (*MockINamingProxyMockRecorder) RegisterInstance

func (mr *MockINamingProxyMockRecorder) RegisterInstance(serviceName, groupName, instance interface{}) *gomock.Call

RegisterInstance indicates an expected call of RegisterInstance.

func (*MockINamingProxyMockRecorder) ServerHealthy

func (mr *MockINamingProxyMockRecorder) ServerHealthy() *gomock.Call

ServerHealthy indicates an expected call of ServerHealthy.

func (*MockINamingProxyMockRecorder) Subscribe

func (mr *MockINamingProxyMockRecorder) Subscribe(serviceName, groupName, clusters interface{}) *gomock.Call

Subscribe indicates an expected call of Subscribe.

func (*MockINamingProxyMockRecorder) Unsubscribe

func (mr *MockINamingProxyMockRecorder) Unsubscribe(serviceName, groupName, clusters interface{}) *gomock.Call

Unsubscribe indicates an expected call of Unsubscribe.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL