goapolloconfig

package
v1.0.1-rel-02 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: AFL-3.0 Imports: 15 Imported by: 0

Documentation

Index

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 : 输出配置信息

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL