Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Service *MicroService `yaml:"service"` Registry *Registry `yaml:"registry"` Provider *MicroService `yaml:"provider"` Tenant *Tenant `yaml:"tenant"` }
Config of servicecenter
func DefaultConfig ¶
func DefaultConfig() *Config
type Instance ¶
type Instance struct { ID string `yaml:"-"` Hostname string `yaml:"hostname"` Protocol string `yaml:"protocol"` ListenAddress string `yaml:"listenAddress"` }
Instance configuration
type MicroService ¶
type MicroService struct { ID string `yaml:"-"` AppID string `yaml:"appId"` Name string `yaml:"name"` Version string `yaml:"version"` Instance *Instance `yaml:"instance"` }
MicroService configuration
Click to show internal directories.
Click to hide internal directories.