nacos

package
v1.9.11 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIConfigClient

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

MockIConfigClient is a mock of IConfigClient interface

func NewMockIConfigClient

func NewMockIConfigClient(ctrl *gomock.Controller) *MockIConfigClient

NewMockIConfigClient creates a new mock instance

func (*MockIConfigClient) CancelListenConfig

func (m *MockIConfigClient) CancelListenConfig(params vo.ConfigParam) (err error)

CancelListenConfig use to cancel listen config change dataId require group require tenant ==>nacos.namespace optional

func (*MockIConfigClient) CloseClient

func (m *MockIConfigClient) CloseClient()

CloseClient Close the GRPC client

func (*MockIConfigClient) DeleteConfig

func (m *MockIConfigClient) DeleteConfig(param vo.ConfigParam) (bool, error)

DeleteConfig use to delete config dataId require group require tenant ==>nacos.namespace optional

func (*MockIConfigClient) EXPECT

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

func (*MockIConfigClient) GetConfig

func (m *MockIConfigClient) GetConfig(param vo.ConfigParam) (string, error)

GetConfig mock getting the config

func (*MockIConfigClient) ListenConfig

func (m *MockIConfigClient) ListenConfig(params vo.ConfigParam) (err error)

ListenConfig use to listen config change,it will callback OnChange() when config change dataId require group require onchange require tenant ==>nacos.namespace optional

func (*MockIConfigClient) PublishConfig

func (m *MockIConfigClient) PublishConfig(param vo.ConfigParam) (bool, error)

PublishConfig use to publish config to nacos server dataId require group require content require tenant ==>nacos.namespace optional

func (*MockIConfigClient) SearchConfig

func (m *MockIConfigClient) SearchConfig(param vo.SearchConfigParam) (*model.ConfigPage, error)

SearchConfig use to search nacos config search require search=accurate--精确搜索 search=blur--模糊搜索 group option dataId option tenant ==>nacos.namespace optional pageNo option,default is 1 pageSize option,default is 10

type MockIConfigClientMockRecorder

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

MockIConfigClientMockRecorder is the mock recorder for MockIConfigClient

func (*MockIConfigClientMockRecorder) CancelListenConfig

func (mr *MockIConfigClientMockRecorder) CancelListenConfig(params interface{}) *gomock.Call

CancelListenConfig indicates an expected call of CancelListenConfig

func (*MockIConfigClientMockRecorder) CloseClient

func (mr *MockIConfigClientMockRecorder) CloseClient(params interface{}) *gomock.Call

CloseClient indicates an expected call of CloseClient

func (*MockIConfigClientMockRecorder) DeleteConfig

func (mr *MockIConfigClientMockRecorder) DeleteConfig(param interface{}) *gomock.Call

DeleteConfig indicates an expected call of DeleteConfig

func (*MockIConfigClientMockRecorder) GetConfig

func (mr *MockIConfigClientMockRecorder) GetConfig(param interface{}) *gomock.Call

GetConfig indicates an expected call of GetConfig

func (*MockIConfigClientMockRecorder) ListenConfig

func (mr *MockIConfigClientMockRecorder) ListenConfig(params interface{}) *gomock.Call

ListenConfig indicates an expected call of ListenConfig

func (*MockIConfigClientMockRecorder) PublishConfig

func (mr *MockIConfigClientMockRecorder) PublishConfig(param interface{}) *gomock.Call

PublishConfig indicates an expected call of PublishConfig

func (*MockIConfigClientMockRecorder) SearchConfig

func (mr *MockIConfigClientMockRecorder) SearchConfig(params interface{}) *gomock.Call

SearchConfig indicates an expected call of SearchConfig

Jump to

Keyboard shortcuts

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