Documentation ¶
Index ¶
- Variables
- func AddListen(configs ...interface{})
- func BuildConfigClient() config_client.IConfigClient
- func BuildNamingClient() naming_client.INamingClient
- func GetAllAppIns(serviceName string) ([]string, error)
- func GetAllAppInsCallUrl(path string) ([]string, error)
- func GetAppIns(serviceName string) (string, error)
- func GetAppInsCallUrl(path string) (string, error)
- func GetCronManage() *cron.Cron
- func GetNamingClient() naming_client.INamingClient
- func GracefulShutdown()
- func InitNacos()
- func LoadConfig(out interface{})
- func LoadConfigOld(out interface{})
- type BaseWebConfig
- type WebServerConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var BaseWebConfigVal = &BaseWebConfig{}
Functions ¶
func BuildConfigClient ¶ added in v0.1.17
func BuildConfigClient() config_client.IConfigClient
func BuildNamingClient ¶ added in v0.1.17
func BuildNamingClient() naming_client.INamingClient
func GetAllAppIns ¶ added in v0.2.11
func GetAllAppInsCallUrl ¶ added in v0.2.11
func GetAppInsCallUrl ¶ added in v0.1.2
func GetCronManage ¶ added in v0.3.18
func GetCronManage() *cron.Cron
func GetNamingClient ¶
func GetNamingClient() naming_client.INamingClient
func LoadConfig ¶
func LoadConfig(out interface{})
func LoadConfigOld ¶ added in v0.3.11
func LoadConfigOld(out interface{})
Types ¶
type BaseWebConfig ¶
type BaseWebConfig struct { ServerConfig WebServerConfig `yaml:"server"` AppEnv string `yaml:"app-env"` //发布环境 AppSign map[string]string `yaml:"app-sign"` //应用间秘钥 AppName string //应用名 }
type WebServerConfig ¶
Click to show internal directories.
Click to hide internal directories.