Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type Client
- type MockClient
- func (m *MockClient) AddChangeListener(listener storage.ChangeListener)
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetApolloConfigCache() agcache.CacheInterface
- func (m *MockClient) GetBoolValue(key string, defaultValue bool) bool
- func (m *MockClient) GetChangeListeners() *list.List
- func (m *MockClient) GetConfig(namespace string) *storage.Config
- func (m *MockClient) GetConfigAndInit(namespace string) *storage.Config
- func (m *MockClient) GetConfigCache(namespace string) agcache.CacheInterface
- func (m *MockClient) GetDefaultConfigCache() agcache.CacheInterface
- func (m *MockClient) GetFloatValue(key string, defaultValue float64) float64
- func (m *MockClient) GetIntSliceValue(key string, defaultValue []int) []int
- func (m *MockClient) GetIntValue(key string, defaultValue int) int
- func (m *MockClient) GetStringSliceValue(key string, defaultValue []string) []string
- func (m *MockClient) GetStringValue(key, defaultValue string) string
- func (m *MockClient) GetValue(key string) string
- func (m *MockClient) RemoveChangeListener(listener storage.ChangeListener)
- func (m *MockClient) UseEventDispatch()
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) AddChangeListener(listener interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetApolloConfigCache() *gomock.Call
- func (mr *MockClientMockRecorder) GetBoolValue(key, defaultValue interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetChangeListeners() *gomock.Call
- func (mr *MockClientMockRecorder) GetConfig(namespace interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetConfigAndInit(namespace interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetConfigCache(namespace interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetDefaultConfigCache() *gomock.Call
- func (mr *MockClientMockRecorder) GetFloatValue(key, defaultValue interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetIntSliceValue(key, defaultValue interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetIntValue(key, defaultValue interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetStringSliceValue(key, defaultValue interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetStringValue(key, defaultValue interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetValue(key interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) RemoveChangeListener(listener interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) UseEventDispatch() *gomock.Call
- type MockIConfigClient
- func (m *MockIConfigClient) CancelListenConfig(params vo.ConfigParam) error
- func (m *MockIConfigClient) DeleteConfig(param vo.ConfigParam) (bool, error)
- func (m *MockIConfigClient) EXPECT() *MockIConfigClientMockRecorder
- func (m *MockIConfigClient) GetConfig(param vo.ConfigParam) (string, error)
- func (m *MockIConfigClient) ListenConfig(params vo.ConfigParam) error
- func (m *MockIConfigClient) PublishAggr(param vo.ConfigParam) (bool, error)
- func (m *MockIConfigClient) PublishConfig(param vo.ConfigParam) (bool, error)
- func (m *MockIConfigClient) SearchConfig(param vo.SearchConfigParam) (*model.ConfigPage, error)
- type MockIConfigClientMockRecorder
- func (mr *MockIConfigClientMockRecorder) CancelListenConfig(params interface{}) *gomock.Call
- func (mr *MockIConfigClientMockRecorder) DeleteConfig(param interface{}) *gomock.Call
- func (mr *MockIConfigClientMockRecorder) GetConfig(param interface{}) *gomock.Call
- func (mr *MockIConfigClientMockRecorder) ListenConfig(params interface{}) *gomock.Call
- func (mr *MockIConfigClientMockRecorder) PublishAggr(param interface{}) *gomock.Call
- func (mr *MockIConfigClientMockRecorder) PublishConfig(param interface{}) *gomock.Call
- func (mr *MockIConfigClientMockRecorder) SearchConfig(param interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetConfig(namespace string) *storage.Config GetConfigAndInit(namespace string) *storage.Config GetConfigCache(namespace string) agcache.CacheInterface GetDefaultConfigCache() agcache.CacheInterface GetApolloConfigCache() agcache.CacheInterface GetValue(key string) string GetStringValue(key string, defaultValue string) string GetIntValue(key string, defaultValue int) int GetFloatValue(key string, defaultValue float64) float64 GetBoolValue(key string, defaultValue bool) bool GetStringSliceValue(key string, defaultValue []string) []string GetIntSliceValue(key string, defaultValue []int) []int AddChangeListener(listener storage.ChangeListener) RemoveChangeListener(listener storage.ChangeListener) GetChangeListeners() *list.List UseEventDispatch() }
Client apollo 客户端接口
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) AddChangeListener ¶
func (m *MockClient) AddChangeListener(listener storage.ChangeListener)
AddChangeListener mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) GetApolloConfigCache ¶
func (m *MockClient) GetApolloConfigCache() agcache.CacheInterface
GetApolloConfigCache mocks base method.
func (*MockClient) GetBoolValue ¶
func (m *MockClient) GetBoolValue(key string, defaultValue bool) bool
GetBoolValue mocks base method.
func (*MockClient) GetChangeListeners ¶
func (m *MockClient) GetChangeListeners() *list.List
GetChangeListeners mocks base method.
func (*MockClient) GetConfig ¶
func (m *MockClient) GetConfig(namespace string) *storage.Config
GetConfig mocks base method.
func (*MockClient) GetConfigAndInit ¶
func (m *MockClient) GetConfigAndInit(namespace string) *storage.Config
GetConfigAndInit mocks base method.
func (*MockClient) GetConfigCache ¶
func (m *MockClient) GetConfigCache(namespace string) agcache.CacheInterface
GetConfigCache mocks base method.
func (*MockClient) GetDefaultConfigCache ¶
func (m *MockClient) GetDefaultConfigCache() agcache.CacheInterface
GetDefaultConfigCache mocks base method.
func (*MockClient) GetFloatValue ¶
func (m *MockClient) GetFloatValue(key string, defaultValue float64) float64
GetFloatValue mocks base method.
func (*MockClient) GetIntSliceValue ¶
func (m *MockClient) GetIntSliceValue(key string, defaultValue []int) []int
GetIntSliceValue mocks base method.
func (*MockClient) GetIntValue ¶
func (m *MockClient) GetIntValue(key string, defaultValue int) int
GetIntValue mocks base method.
func (*MockClient) GetStringSliceValue ¶
func (m *MockClient) GetStringSliceValue(key string, defaultValue []string) []string
GetStringSliceValue mocks base method.
func (*MockClient) GetStringValue ¶
func (m *MockClient) GetStringValue(key, defaultValue string) string
GetStringValue mocks base method.
func (*MockClient) GetValue ¶
func (m *MockClient) GetValue(key string) string
GetValue mocks base method.
func (*MockClient) RemoveChangeListener ¶
func (m *MockClient) RemoveChangeListener(listener storage.ChangeListener)
RemoveChangeListener mocks base method.
func (*MockClient) UseEventDispatch ¶
func (m *MockClient) UseEventDispatch()
UseEventDispatch mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) AddChangeListener ¶
func (mr *MockClientMockRecorder) AddChangeListener(listener interface{}) *gomock.Call
AddChangeListener indicates an expected call of AddChangeListener.
func (*MockClientMockRecorder) GetApolloConfigCache ¶
func (mr *MockClientMockRecorder) GetApolloConfigCache() *gomock.Call
GetApolloConfigCache indicates an expected call of GetApolloConfigCache.
func (*MockClientMockRecorder) GetBoolValue ¶
func (mr *MockClientMockRecorder) GetBoolValue(key, defaultValue interface{}) *gomock.Call
GetBoolValue indicates an expected call of GetBoolValue.
func (*MockClientMockRecorder) GetChangeListeners ¶
func (mr *MockClientMockRecorder) GetChangeListeners() *gomock.Call
GetChangeListeners indicates an expected call of GetChangeListeners.
func (*MockClientMockRecorder) GetConfig ¶
func (mr *MockClientMockRecorder) GetConfig(namespace interface{}) *gomock.Call
GetConfig indicates an expected call of GetConfig.
func (*MockClientMockRecorder) GetConfigAndInit ¶
func (mr *MockClientMockRecorder) GetConfigAndInit(namespace interface{}) *gomock.Call
GetConfigAndInit indicates an expected call of GetConfigAndInit.
func (*MockClientMockRecorder) GetConfigCache ¶
func (mr *MockClientMockRecorder) GetConfigCache(namespace interface{}) *gomock.Call
GetConfigCache indicates an expected call of GetConfigCache.
func (*MockClientMockRecorder) GetDefaultConfigCache ¶
func (mr *MockClientMockRecorder) GetDefaultConfigCache() *gomock.Call
GetDefaultConfigCache indicates an expected call of GetDefaultConfigCache.
func (*MockClientMockRecorder) GetFloatValue ¶
func (mr *MockClientMockRecorder) GetFloatValue(key, defaultValue interface{}) *gomock.Call
GetFloatValue indicates an expected call of GetFloatValue.
func (*MockClientMockRecorder) GetIntSliceValue ¶
func (mr *MockClientMockRecorder) GetIntSliceValue(key, defaultValue interface{}) *gomock.Call
GetIntSliceValue indicates an expected call of GetIntSliceValue.
func (*MockClientMockRecorder) GetIntValue ¶
func (mr *MockClientMockRecorder) GetIntValue(key, defaultValue interface{}) *gomock.Call
GetIntValue indicates an expected call of GetIntValue.
func (*MockClientMockRecorder) GetStringSliceValue ¶
func (mr *MockClientMockRecorder) GetStringSliceValue(key, defaultValue interface{}) *gomock.Call
GetStringSliceValue indicates an expected call of GetStringSliceValue.
func (*MockClientMockRecorder) GetStringValue ¶
func (mr *MockClientMockRecorder) GetStringValue(key, defaultValue interface{}) *gomock.Call
GetStringValue indicates an expected call of GetStringValue.
func (*MockClientMockRecorder) GetValue ¶
func (mr *MockClientMockRecorder) GetValue(key interface{}) *gomock.Call
GetValue indicates an expected call of GetValue.
func (*MockClientMockRecorder) RemoveChangeListener ¶
func (mr *MockClientMockRecorder) RemoveChangeListener(listener interface{}) *gomock.Call
RemoveChangeListener indicates an expected call of RemoveChangeListener.
func (*MockClientMockRecorder) UseEventDispatch ¶
func (mr *MockClientMockRecorder) UseEventDispatch() *gomock.Call
UseEventDispatch indicates an expected call of UseEventDispatch.
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) error
CancelListenConfig mocks base method.
func (*MockIConfigClient) DeleteConfig ¶
func (m *MockIConfigClient) DeleteConfig(param vo.ConfigParam) (bool, error)
DeleteConfig mocks base method.
func (*MockIConfigClient) EXPECT ¶
func (m *MockIConfigClient) EXPECT() *MockIConfigClientMockRecorder
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) ListenConfig ¶
func (m *MockIConfigClient) ListenConfig(params vo.ConfigParam) error
ListenConfig mocks base method.
func (*MockIConfigClient) PublishAggr ¶
func (m *MockIConfigClient) PublishAggr(param vo.ConfigParam) (bool, error)
PublishAggr mocks base method.
func (*MockIConfigClient) PublishConfig ¶
func (m *MockIConfigClient) PublishConfig(param vo.ConfigParam) (bool, error)
PublishConfig mocks base method.
func (*MockIConfigClient) SearchConfig ¶
func (m *MockIConfigClient) SearchConfig(param vo.SearchConfigParam) (*model.ConfigPage, error)
SearchConfig mocks base method.
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) 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) PublishAggr ¶
func (mr *MockIConfigClientMockRecorder) PublishAggr(param interface{}) *gomock.Call
PublishAggr indicates an expected call of PublishAggr.
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(param interface{}) *gomock.Call
SearchConfig indicates an expected call of SearchConfig.