naming_proxy

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT 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 model2.Instance) (bool, error)

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

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

	ServerHealthy() bool

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

	Subscribe(serviceName, groupName, clusters string) (model2.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) CloseClient

func (m *MockINamingProxy) CloseClient()

CloseClient mocks base method.

func (*MockINamingProxy) DeregisterInstance

func (m *MockINamingProxy) DeregisterInstance(serviceName, groupName string, instance model2.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 string, selector *model2.ExpressionSelector) (model2.ServiceList, error)

GetServiceList mocks base method.

func (*MockINamingProxy) QueryInstancesOfService

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

QueryInstancesOfService mocks base method.

func (*MockINamingProxy) RegisterInstance

func (m *MockINamingProxy) RegisterInstance(serviceName, groupName string, instance model2.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) (model2.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) 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, 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