Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EnvAppName 应用名环境变量 EnvAppName = "EGO_NAME" // EnvAppMode 应用模式环境变量 EnvAppMode = "EGO_MODE" // EnvAppRegion ... EnvAppRegion = "EGO_REGION" // EnvAppZone ... EnvAppZone = "EGO_ZONE" // EnvAppHost ... EnvAppHost = "EGO_HOST" // EnvAppInstance 应用实例ID环境变量 EnvAppInstance = "EGO_INSTANCE" // EgoDebug 调试环境变量,export EGO_DEBUG=true,开启应用的调试模式 EgoDebug = "EGO_DEBUG" // EgoConfigPath 应用配置环境变量 EgoConfigPath = "EGO_CONFIG_PATH" // EgoLogPath 应用日志环境变量 EgoLogPath = "EGO_LOG_PATH" // EgoLogAddApp 应用日志增加应用名环境变量,如果增加该环境变量,日志里会将应用名写入到app字段里 EgoLogAddApp = "EGO_LOG_ADD_APP" // EgoTraceIDName 应用链路ID环境变量,不配置,默认x-trace-id EgoTraceIDName = "EGO_TRACE_ID_NAME" // DefaultDeployment ... DefaultDeployment = "" )
View Source
const ( // KeyRouteConfig ... KeyRouteConfig = "__route_config_" // KeyProviderConfig ... KeyProviderConfig = "__provider_config_" // KeyConsumerConfig ... KeyConsumerConfig = "__consumer_config_" // KeyServiceInfo ... KeyServiceInfo = "__service_info_" )
View Source
const (
// DefaultConfig 默认配置文件
DefaultConfig = "config/local.toml"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceKind ¶
type ServiceKind uint8
ServiceKind service kind
const ( // ServiceUnknown service non-name ServiceUnknown ServiceKind = iota // ServiceProvider service provider ServiceProvider // ServiceGovernor service governor ServiceGovernor // ServiceConsumer service consumer ServiceConsumer )
func (ServiceKind) String ¶
func (sk ServiceKind) String() string
Click to show internal directories.
Click to hide internal directories.