Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
SrvConfig *ServiceConfig
RegConfig *RegistryConfig
ConfigSource config.Source
EnableConfigCenter bool
}
Config contains service config. Use this as a basic config and add own fields in own app packages if needed.
func InitConfig ¶
func InitConfig() *Config
type RegistryConfig ¶
type RegistryConfig struct {
*registryv1.Registry `json:",inline"`
FilePath string
}
RegistryConfig contains registry config
func NewRegistryConfig ¶
func NewRegistryConfig() *RegistryConfig
type ServiceConfig ¶
ServiceConfig contains service config
func NewServiceConfig ¶ added in v0.0.4
func NewServiceConfig() *ServiceConfig
Click to show internal directories.
Click to hide internal directories.