Documentation ¶
Index ¶
- Constants
- Variables
- func InjectApolloConfig(s *ApolloConfig)
- func InjectGoapolloConfig(s *GoapolloConfig)
- func LoadApolloConfig() baseiface.ISingleton
- func LoadGoapolloConfig() baseiface.ISingleton
- type ApolloConfig
- type GoapolloConfig
- func (this *GoapolloConfig) GetConfig(ac *ApolloConfig) *storage.Config
- func (this *GoapolloConfig) GetConfigCache(ac *ApolloConfig) agcache.CacheInterface
- func (this *GoapolloConfig) GetContent(ac *ApolloConfig) string
- func (this *GoapolloConfig) GetContentDefault() string
- func (this *GoapolloConfig) Prop2Yaml(content string) string
- func (this *GoapolloConfig) Prop2YamlStr(content string) string
Constants ¶
View Source
const ( VAR_FLAG_SINMPLE = "$" VAR_FLAG_MEDIUM = "%%%" )
Variables ¶
View Source
var WebsiteConfig = &ApolloConfig{ AppID: "monitor", Cluster: "website-grpc", IP: default_apollo_host, NamespaceName: "public.yml", IsBackupConfig: true, BackupConfigPath: fileutils.FindRootDir() + apollo_cache_dir, Secret: "c05cc16aae69ad41e9df995c26a6c7408f18a1fa", }
Functions ¶
func InjectApolloConfig ¶
func InjectApolloConfig(s *ApolloConfig)
func InjectGoapolloConfig ¶
func InjectGoapolloConfig(s *GoapolloConfig)
func LoadApolloConfig ¶
func LoadApolloConfig() baseiface.ISingleton
func LoadGoapolloConfig ¶
func LoadGoapolloConfig() baseiface.ISingleton
Types ¶
type ApolloConfig ¶
type ApolloConfig struct { basedto.BaseEntity IP string IsBackupConfig bool AppID string Cluster string NamespaceName string BackupConfigPath string // fileutils.FindRootDir() + "/data/apollocche", Secret string // contains filtered or unexported fields }
func FindBeanApolloConfig ¶
func FindBeanApolloConfig() *ApolloConfig
func GetDefaultApolloConfig ¶
func GetDefaultApolloConfig() *ApolloConfig
func NewApolloConfig ¶
func NewApolloConfig() *ApolloConfig
func (*ApolloConfig) ToAppConfig ¶
func (this *ApolloConfig) ToAppConfig() *config.AppConfig
type GoapolloConfig ¶
type GoapolloConfig struct { basedto.BaseEntitySingle OutPath string }
func FindBeanGoapolloConfig ¶
func FindBeanGoapolloConfig() *GoapolloConfig
func NewGoapolloConfig ¶
func NewGoapolloConfig() *GoapolloConfig
func (*GoapolloConfig) GetConfig ¶
func (this *GoapolloConfig) GetConfig(ac *ApolloConfig) *storage.Config
func (*GoapolloConfig) GetConfigCache ¶
func (this *GoapolloConfig) GetConfigCache(ac *ApolloConfig) agcache.CacheInterface
func (*GoapolloConfig) GetContent ¶
func (this *GoapolloConfig) GetContent(ac *ApolloConfig) string
func (*GoapolloConfig) GetContentDefault ¶
func (this *GoapolloConfig) GetContentDefault() string
func (*GoapolloConfig) Prop2Yaml ¶
func (this *GoapolloConfig) Prop2Yaml(content string) string
* contest :配置信息 * out : 输出文件名称
func (*GoapolloConfig) Prop2YamlStr ¶
func (this *GoapolloConfig) Prop2YamlStr(content string) string
* contest :配置信息 * out : 输出配置信息
Click to show internal directories.
Click to hide internal directories.