Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConnectTimeout = 5 * time.Second RetryInterval = 5 * time.Second NofityTimeout = 65 * time.Second )
View Source
var ErrInvalidHttpStatus = errors.New("invalid http status")
Functions ¶
func ListFormatFunc ¶
func NewMutliError ¶
func NewMutliError() *multierror.Error
Types ¶
type Config ¶
type Config struct { ConnConfig Configurations map[string]string `json:"configurations"` }
type ConfigCenter ¶
type ConfigCenter struct { Host Resolver AppId string `json:"appId"` Cluster string `json:"cluster"` ClientIp string `json:"-"` }
func (*ConfigCenter) PullNotify ¶
func (cc *ConfigCenter) PullNotify(notifications string) ([]*NotifyMsg, error)
func (*ConfigCenter) SyncConfig ¶
func (cc *ConfigCenter) SyncConfig(namespaceName, releaseKey string, notificationId int64) (ret *Config, err error)
type ConnConfig ¶
Click to show internal directories.
Click to hide internal directories.