Versions in this module Expand all Collapse all v1 v1.0.1 Dec 23, 2023 Changes in this version + const DefaultCluster + const Service + var ErrServiceConfigKeyNotExist = errors.New("service config key not exist") + type Config struct + LastModified string + ServiceIP string + ServiceKind string + ServicePort string + ServiceVersion string + type ServiceConfigClient struct + ServiceLB *slb.ServiceLB + func NewServiceConfigClient(slb *slb.ServiceLB) *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) Watch(ctx context.Context) (<-chan struct{}, error) + func (s *ServiceConfigClient) WriteConfig(sequence string, c Config) error