Documentation ¶
Index ¶
- func NewApolloConfigSource(_, _ string) config.Source
- func NewConfigProvider(configType, configHost, configPath, configKey string) config.Config
- func NewConsulConfigSource(configHost, configKey string) config.Source
- func NewEtcdConfigSource(configHost, configKey string) config.Source
- func NewFileConfigSource(filePath string) config.Source
- func NewLoggerProvider(serviceInfo *ServiceInfo) log.Logger
- func NewNacosConfigSource(configAddr string, configPort uint64, configKey string) config.Source
- func NewRemoteConfigSource(configType, configHost, configKey string) config.Source
- func NewTracerProvider(endpoint, env string, serviceInfo *ServiceInfo) error
- type CommandFlags
- type ServiceInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApolloConfigSource ¶
NewApolloConfigSource 创建一个远程配置源 - Apollo
func NewConfigProvider ¶
NewConfigProvider 创建一个配置
func NewConsulConfigSource ¶
NewConsulConfigSource 创建一个远程配置源 - Consul
func NewEtcdConfigSource ¶
NewEtcdConfigSource 创建一个远程配置源 - Etcd
func NewFileConfigSource ¶
NewFileConfigSource 创建一个本地文件配置源
func NewLoggerProvider ¶
func NewLoggerProvider(serviceInfo *ServiceInfo) log.Logger
func NewNacosConfigSource ¶
NewNacosConfigSource 创建一个远程配置源 - Nacos
func NewRemoteConfigSource ¶
NewRemoteConfigSource 创建一个远程配置源
func NewTracerProvider ¶
func NewTracerProvider(endpoint, env string, serviceInfo *ServiceInfo) error
Types ¶
type CommandFlags ¶
func NewCommandFlags ¶
func NewCommandFlags() *CommandFlags
func (*CommandFlags) Init ¶
func (f *CommandFlags) Init()
type ServiceInfo ¶
func NewServiceInfo ¶
func NewServiceInfo(name, version, id string) ServiceInfo
func (*ServiceInfo) GetInstanceId ¶
func (s *ServiceInfo) GetInstanceId() string
func (*ServiceInfo) SetMataData ¶
func (s *ServiceInfo) SetMataData(k, v string)
Click to show internal directories.
Click to hide internal directories.