mock

package
v0.0.0-...-c202456 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

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) AddConfigToListen

func (m *MockIConfigClient) AddConfigToListen(params []vo.ConfigParam) error

AddConfigToListen mocks base method

func (*MockIConfigClient) DeleteConfig

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

DeleteConfig mocks base method

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 mocks base method

func (*MockIConfigClient) GetConfigContent

func (m *MockIConfigClient) GetConfigContent(dataId, groupId string) (string, error)

GetConfigContent mocks base method

func (*MockIConfigClient) ListenConfig

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

ListenConfig mocks base method

func (*MockIConfigClient) PublishConfig

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

PublishConfig mocks base method

func (*MockIConfigClient) StopListenConfig

func (m *MockIConfigClient) StopListenConfig()

StopListenConfig mocks base method

type MockIConfigClientMockRecorder

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

MockIConfigClientMockRecorder is the mock recorder for MockIConfigClient

func (*MockIConfigClientMockRecorder) AddConfigToListen

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

AddConfigToListen indicates an expected call of AddConfigToListen

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) GetConfigContent

func (mr *MockIConfigClientMockRecorder) GetConfigContent(dataId, groupId interface{}) *gomock.Call

GetConfigContent indicates an expected call of GetConfigContent

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) StopListenConfig

func (mr *MockIConfigClientMockRecorder) StopListenConfig() *gomock.Call

StopListenConfig indicates an expected call of StopListenConfig

type MockIHttpAgent

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

MockIHttpAgent is a mock of IHttpAgent interface

func NewMockIHttpAgent

func NewMockIHttpAgent(ctrl *gomock.Controller) *MockIHttpAgent

NewMockIHttpAgent creates a new mock instance

func (*MockIHttpAgent) Delete

func (m *MockIHttpAgent) Delete(path string, header http.Header, timeoutMs uint64, params map[string]string) (*http.Response, error)

Delete mocks base method

func (*MockIHttpAgent) EXPECT

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

func (*MockIHttpAgent) Get

func (m *MockIHttpAgent) Get(path string, header http.Header, timeoutMs uint64, params map[string]string) (*http.Response, error)

Get mocks base method

func (*MockIHttpAgent) Post

func (m *MockIHttpAgent) Post(path string, header http.Header, timeoutMs uint64, params map[string]string) (*http.Response, error)

Post mocks base method

func (*MockIHttpAgent) Put

func (m *MockIHttpAgent) Put(path string, header http.Header, timeoutMs uint64, params map[string]string) (*http.Response, error)

Put mocks base method

func (*MockIHttpAgent) Request

func (m *MockIHttpAgent) Request(method, path string, header http.Header, timeoutMs uint64, params map[string]string) (*http.Response, error)

Request mocks base method

func (*MockIHttpAgent) RequestOnlyResult

func (m *MockIHttpAgent) RequestOnlyResult(method, path string, header http.Header, timeoutMs uint64, params map[string]string) string

RequestOnlyResult mocks base method

type MockIHttpAgentMockRecorder

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

MockIHttpAgentMockRecorder is the mock recorder for MockIHttpAgent

func (*MockIHttpAgentMockRecorder) Delete

func (mr *MockIHttpAgentMockRecorder) Delete(path, header, timeoutMs, params interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockIHttpAgentMockRecorder) Get

func (mr *MockIHttpAgentMockRecorder) Get(path, header, timeoutMs, params interface{}) *gomock.Call

Get indicates an expected call of Get

func (*MockIHttpAgentMockRecorder) Post

func (mr *MockIHttpAgentMockRecorder) Post(path, header, timeoutMs, params interface{}) *gomock.Call

Post indicates an expected call of Post

func (*MockIHttpAgentMockRecorder) Put

func (mr *MockIHttpAgentMockRecorder) Put(path, header, timeoutMs, params interface{}) *gomock.Call

Put indicates an expected call of Put

func (*MockIHttpAgentMockRecorder) Request

func (mr *MockIHttpAgentMockRecorder) Request(method, path, header, timeoutMs, params interface{}) *gomock.Call

Request indicates an expected call of Request

func (*MockIHttpAgentMockRecorder) RequestOnlyResult

func (mr *MockIHttpAgentMockRecorder) RequestOnlyResult(method, path, header, timeoutMs, params interface{}) *gomock.Call

RequestOnlyResult indicates an expected call of RequestOnlyResult

type MockINacosClient

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

MockINacosClient is a mock of INacosClient interface

func NewMockINacosClient

func NewMockINacosClient(ctrl *gomock.Controller) *MockINacosClient

NewMockINacosClient creates a new mock instance

func (*MockINacosClient) EXPECT

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

func (*MockINacosClient) GetClientConfig

func (m *MockINacosClient) GetClientConfig() (constant.ClientConfig, error)

GetClientConfig mocks base method

func (*MockINacosClient) GetHttpAgent

func (m *MockINacosClient) GetHttpAgent() (http_agent.IHttpAgent, error)

GetHttpAgent mocks base method

func (*MockINacosClient) GetServerConfig

func (m *MockINacosClient) GetServerConfig() ([]constant.ServerConfig, error)

GetServerConfig mocks base method

func (*MockINacosClient) SetClientConfig

func (m *MockINacosClient) SetClientConfig(arg0 constant.ClientConfig) error

SetClientConfig mocks base method

func (*MockINacosClient) SetHttpAgent

func (m *MockINacosClient) SetHttpAgent(arg0 http_agent.IHttpAgent) error

SetHttpAgent mocks base method

func (*MockINacosClient) SetServerConfig

func (m *MockINacosClient) SetServerConfig(arg0 []constant.ServerConfig) error

SetServerConfig mocks base method

type MockINacosClientMockRecorder

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

MockINacosClientMockRecorder is the mock recorder for MockINacosClient

func (*MockINacosClientMockRecorder) GetClientConfig

func (mr *MockINacosClientMockRecorder) GetClientConfig() *gomock.Call

GetClientConfig indicates an expected call of GetClientConfig

func (*MockINacosClientMockRecorder) GetHttpAgent

func (mr *MockINacosClientMockRecorder) GetHttpAgent() *gomock.Call

GetHttpAgent indicates an expected call of GetHttpAgent

func (*MockINacosClientMockRecorder) GetServerConfig

func (mr *MockINacosClientMockRecorder) GetServerConfig() *gomock.Call

GetServerConfig indicates an expected call of GetServerConfig

func (*MockINacosClientMockRecorder) SetClientConfig

func (mr *MockINacosClientMockRecorder) SetClientConfig(arg0 interface{}) *gomock.Call

SetClientConfig indicates an expected call of SetClientConfig

func (*MockINacosClientMockRecorder) SetHttpAgent

func (mr *MockINacosClientMockRecorder) SetHttpAgent(arg0 interface{}) *gomock.Call

SetHttpAgent indicates an expected call of SetHttpAgent

func (*MockINacosClientMockRecorder) SetServerConfig

func (mr *MockINacosClientMockRecorder) SetServerConfig(arg0 interface{}) *gomock.Call

SetServerConfig indicates an expected call of SetServerConfig

type MockINamingClient

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

MockINamingClient is a mock of INamingClient interface

func NewMockINamingClient

func NewMockINamingClient(ctrl *gomock.Controller) *MockINamingClient

NewMockINamingClient creates a new mock instance

func (*MockINamingClient) DeregisterInstance

func (m *MockINamingClient) DeregisterInstance(param vo.DeregisterInstanceParam) (bool, error)

DeregisterInstance mocks base method

func (*MockINamingClient) EXPECT

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

func (*MockINamingClient) GetService

func (m *MockINamingClient) GetService(param vo.GetServiceParam) (model.Service, error)

GetService mocks base method

func (*MockINamingClient) RegisterInstance

func (m *MockINamingClient) RegisterInstance(param vo.RegisterInstanceParam) (bool, error)

RegisterInstance mocks base method

func (*MockINamingClient) SelectInstances

func (m *MockINamingClient) SelectInstances(param vo.SelectInstancesParam) ([]model.Instance, error)

SelectInstances mocks base method

func (*MockINamingClient) SelectOneHealthyInstance

func (m *MockINamingClient) SelectOneHealthyInstance(param vo.SelectOneHealthInstanceParam) (*model.Instance, error)

SelectOneHealthyInstance mocks base method

func (*MockINamingClient) Subscribe

func (m *MockINamingClient) Subscribe(param *vo.SubscribeParam) error

Subscribe mocks base method

func (*MockINamingClient) Unsubscribe

func (m *MockINamingClient) Unsubscribe(param *vo.SubscribeParam) error

Unsubscribe mocks base method

type MockINamingClientMockRecorder

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

MockINamingClientMockRecorder is the mock recorder for MockINamingClient

func (*MockINamingClientMockRecorder) DeregisterInstance

func (mr *MockINamingClientMockRecorder) DeregisterInstance(param interface{}) *gomock.Call

DeregisterInstance indicates an expected call of DeregisterInstance

func (*MockINamingClientMockRecorder) GetService

func (mr *MockINamingClientMockRecorder) GetService(param interface{}) *gomock.Call

GetService indicates an expected call of GetService

func (*MockINamingClientMockRecorder) RegisterInstance

func (mr *MockINamingClientMockRecorder) RegisterInstance(param interface{}) *gomock.Call

RegisterInstance indicates an expected call of RegisterInstance

func (*MockINamingClientMockRecorder) SelectInstances

func (mr *MockINamingClientMockRecorder) SelectInstances(param interface{}) *gomock.Call

SelectInstances indicates an expected call of SelectInstances

func (*MockINamingClientMockRecorder) SelectOneHealthyInstance

func (mr *MockINamingClientMockRecorder) SelectOneHealthyInstance(param interface{}) *gomock.Call

SelectOneHealthyInstance indicates an expected call of SelectOneHealthyInstance

func (*MockINamingClientMockRecorder) Subscribe

func (mr *MockINamingClientMockRecorder) Subscribe(param interface{}) *gomock.Call

Subscribe indicates an expected call of Subscribe

func (*MockINamingClientMockRecorder) Unsubscribe

func (mr *MockINamingClientMockRecorder) Unsubscribe(param 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