Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type ServiceConfigClient
- func (s *ServiceConfigClient) ClearConfig(sequence string) error
- func (s *ServiceConfigClient) GetConfig(sequence string) (*Config, error)
- func (s *ServiceConfigClient) GetConfigs() (map[string]*Config, error)
- func (s *ServiceConfigClient) GetKeyName(serverName string, sequences ...string) string
- func (s *ServiceConfigClient) ListConfigs() (map[string]*Config, error)
- func (s *ServiceConfigClient) WriteConfig(sequence string, c Config) error
Constants ¶
View Source
const ( ROOT = "/" SERVICE = "kelvins-service" DEFAULT_CLUSTER = "load-balance" )
Variables ¶
View Source
var ErrServiceConfigKeyNotExist = errors.New("service config key not exist")
Functions ¶
This section is empty.
Types ¶
type ServiceConfigClient ¶ added in v1.4.2
func NewServiceConfigClient ¶ added in v1.4.2
func NewServiceConfigClient(slb *slb.ServiceLB) *ServiceConfigClient
func (*ServiceConfigClient) ClearConfig ¶ added in v1.4.2
func (s *ServiceConfigClient) ClearConfig(sequence string) error
func (*ServiceConfigClient) GetConfig ¶ added in v1.4.2
func (s *ServiceConfigClient) GetConfig(sequence string) (*Config, error)
func (*ServiceConfigClient) GetConfigs ¶ added in v1.4.2
func (s *ServiceConfigClient) GetConfigs() (map[string]*Config, error)
func (*ServiceConfigClient) GetKeyName ¶ added in v1.4.2
func (s *ServiceConfigClient) GetKeyName(serverName string, sequences ...string) string
func (*ServiceConfigClient) ListConfigs ¶ added in v1.4.2
func (s *ServiceConfigClient) ListConfigs() (map[string]*Config, error)
func (*ServiceConfigClient) WriteConfig ¶ added in v1.4.2
func (s *ServiceConfigClient) WriteConfig(sequence string, c Config) error
Click to show internal directories.
Click to hide internal directories.