Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBaseDir ¶
func GetBaseDir() string
Types ¶
type ClientConfig ¶
type ClientConfig struct { RequestTimeout int64 `yaml:"request-timeout"` RefreshEndpointInterval int64 `yaml:"refresh-endpoint-interval"` }
func GetClientConfig ¶
func GetClientConfig() *ClientConfig
type Config ¶
type Config struct { Service string `yaml:"service"` AppListen string `yaml:"app-listen"` LocalIP string `yaml:"local-ip"` KeepAlive int `yaml:"keep-alive"` LogLevel string `yaml:"log-level"` LogDir string `yaml:"log-dir"` BaseDir string `yaml:"base-dir"` Registry *Registry `json:"registry"` ServerConf []*ServerConfig `yaml:"server"` ClientConf *ClientConfig `yaml:"client"` }
type ServerConfig ¶
type ServerConfig struct { Name string `yaml:"name"` Port string `yaml:"port"` InvokeTimeout int64 `yaml:"invoke-timeout"` MaxInvoke int64 `yaml:"max-invoke"` }
func GetServerConfig ¶
func GetServerConfig(name string) *ServerConfig
Click to show internal directories.
Click to hide internal directories.