Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EnvKeySentinelLogDir ... EnvKeySentinelLogDir = "SENTINEL_LOG_DIR" // EnvKeySentinelAppName ... EnvKeySentinelAppName = "SENTINEL_APP_NAME" )
View Source
const ( // EnvAppName ... EnvAppName = "APP_NAME" EnvAppID = "APP_ID" // EnvDeployment ... EnvDeployment = "APP_DEPLOYMENT" EnvAppLogDir = "APP_LOG_DIR" EnvAppMode = "APP_MODE" EnvAppRegion = "APP_REGION" EnvAppZone = "APP_ZONE" EnvAppHost = "APP_HOST" EnvAppInstance = "APP_INSTANCE" // application unique instance id. //k8s环境 EnvPOD_IP = "POD_IP" EnvPOD_NAME = "POD_NAME" )
View Source
const ( // DefaultDeployment ... DefaultDeployment = "" // DefaultRegion ... DefaultRegion = "" // DefaultZone ... DefaultZone = "" )
View Source
const ( // KeyBalanceGroup ... KeyBalanceGroup = "__group" // DefaultBalanceGroup ... DefaultBalanceGroup = "default" )
View Source
const ( // KeyRouteConfig ... KeyRouteConfig = "__route_config_" // KeyRouteGroup ... KeyRouteGroup = "__route_group_" // KeyProviderConfig ... KeyProviderConfig = "__provider_config_" // KeyConsumerConfig ... KeyConsumerConfig = "__consumer_config_" // KeyServiceInfo KeyServiceInfo = "__service_info_" )
View Source
const ( ModuleInvalid = Module(iota) ModuleClientGrpc ModuleClientResty ModuleClientRedis ModuleClientRocketMQ ModuleClientEtcd ModuleRegistryEtcd ModuleStoreMongoDB ModuleStoreGorm )
Variables ¶
View Source
var (
// DefaultNamespace 默认命名空间
DefaultNamespace = ""
)
Functions ¶
func GetConfigPrefix ¶
func GetConfigPrefix() string
func SetConfigPrefix ¶
func SetConfigPrefix(prefix string)
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.