Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { AppID string `json:"appId"` Cluster string `json:"cluster"` NamespaceName string `json:"namespaceName"` IP string `json:"ip"` NextTryConnTime int64 `json:"-"` IsBackupConfig bool `default:"true" json:"isBackupConfig"` BackupConfigPath string `json:"backupConfigPath"` }
AppConfig 配置文件
func (*AppConfig) GetBackupConfigPath ¶
GetBackupConfigPath GetBackupConfigPath
func (*AppConfig) GetIsBackupConfig ¶
GetIsBackupConfig whether backup config after fetch config from apollo false : no true : yes (default)
func (*AppConfig) IsConnectDirectly ¶
IsConnectDirectly is connect by ip directly false : no true : yes
func (*AppConfig) SetNextTryConnTime ¶
SetNextTryConnTime if this connect is fail will set this time
Click to show internal directories.
Click to hide internal directories.