Documentation ¶
Overview ¶
Package config is a generated GoMock package.
Index ¶
- type GovernanceConfig
- type GovernanceConfigImpl
- func (g *GovernanceConfigImpl) DeleteConfig(key string) error
- func (g *GovernanceConfigImpl) DeleteConfigWithGroup(group string, key string) error
- func (g *GovernanceConfigImpl) GetConfig(key string) (string, error)
- func (g *GovernanceConfigImpl) GetConfigWithGroup(group string, key string) (string, error)
- func (g *GovernanceConfigImpl) GetList(ConfigSuffix string) (map[string]string, error)
- func (g *GovernanceConfigImpl) Register(url *common.URL) error
- func (g *GovernanceConfigImpl) SetConfig(key string, value string) error
- func (g *GovernanceConfigImpl) SetConfigWithGroup(group string, key string, value string) error
- func (g *GovernanceConfigImpl) UnRegister(url *common.URL) error
- type MockGovernanceConfig
- func (m *MockGovernanceConfig) DeleteConfig(arg0 string) error
- func (m *MockGovernanceConfig) DeleteConfigWithGroup(arg0, arg1 string) error
- func (m *MockGovernanceConfig) EXPECT() *MockGovernanceConfigMockRecorder
- func (m *MockGovernanceConfig) GetConfig(arg0 string) (string, error)
- func (m *MockGovernanceConfig) GetConfigWithGroup(arg0, arg1 string) (string, error)
- func (m *MockGovernanceConfig) GetList(arg0 string) (map[string]string, error)
- func (m *MockGovernanceConfig) Register(arg0 *common.URL) error
- func (m *MockGovernanceConfig) SetConfig(arg0, arg1 string) error
- func (m *MockGovernanceConfig) SetConfigWithGroup(arg0, arg1, arg2 string) error
- func (m *MockGovernanceConfig) UnRegister(arg0 *common.URL) error
- type MockGovernanceConfigMockRecorder
- func (mr *MockGovernanceConfigMockRecorder) DeleteConfig(arg0 interface{}) *gomock.Call
- func (mr *MockGovernanceConfigMockRecorder) DeleteConfigWithGroup(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGovernanceConfigMockRecorder) GetConfig(arg0 interface{}) *gomock.Call
- func (mr *MockGovernanceConfigMockRecorder) GetConfigWithGroup(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGovernanceConfigMockRecorder) Register(arg0 interface{}) *gomock.Call
- func (mr *MockGovernanceConfigMockRecorder) SetConfig(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGovernanceConfigMockRecorder) SetConfigWithGroup(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGovernanceConfigMockRecorder) UnRegister(arg0 interface{}) *gomock.Call
- type NacosGovImpl
- type RuleExists
- type RuleNotFound
- type ZkGovImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GovernanceConfig ¶
type GovernanceConfig interface { SetConfig(key string, value string) error GetConfig(key string) (string, error) GetList(configSuffix string) (map[string]string, error) DeleteConfig(key string) error SetConfigWithGroup(group string, key string, value string) error GetConfigWithGroup(group string, key string) (string, error) DeleteConfigWithGroup(group string, key string) error Register(url *common.URL) error UnRegister(url *common.URL) error }
func NewGovernanceConfig ¶
func NewGovernanceConfig(cc config_center.DynamicConfiguration, registry registry.Registry, p string) GovernanceConfig
type GovernanceConfigImpl ¶
type GovernanceConfigImpl struct {
// contains filtered or unexported fields
}
func (*GovernanceConfigImpl) DeleteConfig ¶
func (g *GovernanceConfigImpl) DeleteConfig(key string) error
func (*GovernanceConfigImpl) DeleteConfigWithGroup ¶
func (g *GovernanceConfigImpl) DeleteConfigWithGroup(group string, key string) error
func (*GovernanceConfigImpl) GetConfig ¶
func (g *GovernanceConfigImpl) GetConfig(key string) (string, error)
func (*GovernanceConfigImpl) GetConfigWithGroup ¶
func (g *GovernanceConfigImpl) GetConfigWithGroup(group string, key string) (string, error)
func (*GovernanceConfigImpl) GetList ¶
func (g *GovernanceConfigImpl) GetList(ConfigSuffix string) (map[string]string, error)
func (*GovernanceConfigImpl) Register ¶
func (g *GovernanceConfigImpl) Register(url *common.URL) error
func (*GovernanceConfigImpl) SetConfig ¶
func (g *GovernanceConfigImpl) SetConfig(key string, value string) error
func (*GovernanceConfigImpl) SetConfigWithGroup ¶
func (g *GovernanceConfigImpl) SetConfigWithGroup(group string, key string, value string) error
func (*GovernanceConfigImpl) UnRegister ¶
func (g *GovernanceConfigImpl) UnRegister(url *common.URL) error
type MockGovernanceConfig ¶
type MockGovernanceConfig struct {
// contains filtered or unexported fields
}
MockGovernanceConfig is a mock of GovernanceConfig interface.
func NewMockGovernanceConfig ¶
func NewMockGovernanceConfig(ctrl *gomock.Controller) *MockGovernanceConfig
NewMockGovernanceConfig creates a new mock instance.
func (*MockGovernanceConfig) DeleteConfig ¶
func (m *MockGovernanceConfig) DeleteConfig(arg0 string) error
DeleteConfig mocks base method.
func (*MockGovernanceConfig) DeleteConfigWithGroup ¶
func (m *MockGovernanceConfig) DeleteConfigWithGroup(arg0, arg1 string) error
DeleteConfigWithGroup mocks base method.
func (*MockGovernanceConfig) EXPECT ¶
func (m *MockGovernanceConfig) EXPECT() *MockGovernanceConfigMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGovernanceConfig) GetConfig ¶
func (m *MockGovernanceConfig) GetConfig(arg0 string) (string, error)
GetConfig mocks base method.
func (*MockGovernanceConfig) GetConfigWithGroup ¶
func (m *MockGovernanceConfig) GetConfigWithGroup(arg0, arg1 string) (string, error)
GetConfigWithGroup mocks base method.
func (*MockGovernanceConfig) GetList ¶
func (m *MockGovernanceConfig) GetList(arg0 string) (map[string]string, error)
func (*MockGovernanceConfig) Register ¶
func (m *MockGovernanceConfig) Register(arg0 *common.URL) error
Register mocks base method.
func (*MockGovernanceConfig) SetConfig ¶
func (m *MockGovernanceConfig) SetConfig(arg0, arg1 string) error
SetConfig mocks base method.
func (*MockGovernanceConfig) SetConfigWithGroup ¶
func (m *MockGovernanceConfig) SetConfigWithGroup(arg0, arg1, arg2 string) error
SetConfigWithGroup mocks base method.
func (*MockGovernanceConfig) UnRegister ¶
func (m *MockGovernanceConfig) UnRegister(arg0 *common.URL) error
UnRegister mocks base method.
type MockGovernanceConfigMockRecorder ¶
type MockGovernanceConfigMockRecorder struct {
// contains filtered or unexported fields
}
MockGovernanceConfigMockRecorder is the mock recorder for MockGovernanceConfig.
func (*MockGovernanceConfigMockRecorder) DeleteConfig ¶
func (mr *MockGovernanceConfigMockRecorder) DeleteConfig(arg0 interface{}) *gomock.Call
DeleteConfig indicates an expected call of DeleteConfig.
func (*MockGovernanceConfigMockRecorder) DeleteConfigWithGroup ¶
func (mr *MockGovernanceConfigMockRecorder) DeleteConfigWithGroup(arg0, arg1 interface{}) *gomock.Call
DeleteConfigWithGroup indicates an expected call of DeleteConfigWithGroup.
func (*MockGovernanceConfigMockRecorder) GetConfig ¶
func (mr *MockGovernanceConfigMockRecorder) GetConfig(arg0 interface{}) *gomock.Call
GetConfig indicates an expected call of GetConfig.
func (*MockGovernanceConfigMockRecorder) GetConfigWithGroup ¶
func (mr *MockGovernanceConfigMockRecorder) GetConfigWithGroup(arg0, arg1 interface{}) *gomock.Call
GetConfigWithGroup indicates an expected call of GetConfigWithGroup.
func (*MockGovernanceConfigMockRecorder) Register ¶
func (mr *MockGovernanceConfigMockRecorder) Register(arg0 interface{}) *gomock.Call
Register indicates an expected call of Register.
func (*MockGovernanceConfigMockRecorder) SetConfig ¶
func (mr *MockGovernanceConfigMockRecorder) SetConfig(arg0, arg1 interface{}) *gomock.Call
SetConfig indicates an expected call of SetConfig.
func (*MockGovernanceConfigMockRecorder) SetConfigWithGroup ¶
func (mr *MockGovernanceConfigMockRecorder) SetConfigWithGroup(arg0, arg1, arg2 interface{}) *gomock.Call
SetConfigWithGroup indicates an expected call of SetConfigWithGroup.
func (*MockGovernanceConfigMockRecorder) UnRegister ¶
func (mr *MockGovernanceConfigMockRecorder) UnRegister(arg0 interface{}) *gomock.Call
UnRegister indicates an expected call of UnRegister.
type NacosGovImpl ¶
type NacosGovImpl struct { GovernanceConfig // contains filtered or unexported fields }
type RuleExists ¶
type RuleExists struct {
// contains filtered or unexported fields
}
func (*RuleExists) Error ¶
func (exist *RuleExists) Error() string
type RuleNotFound ¶
type RuleNotFound struct {
// contains filtered or unexported fields
}
func (*RuleNotFound) Error ¶
func (notFound *RuleNotFound) Error() string
type ZkGovImpl ¶
type ZkGovImpl struct { GovernanceConfig // contains filtered or unexported fields }