constant

package
v2.9.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EnvKeySentinelLogDir ...
	EnvKeySentinelLogDir = "SENTINEL_LOG_DIR"
	// EnvKeySentinelAppName ...
	EnvKeySentinelAppName = "SENTINEL_APP_NAME"
)

EnvKeySentinelLogDir ...

View Source
const (
	// EnvAppName ...
	EnvAppName     = "APP_NAME"
	EnvAppID       = "APP_ID"
	EnvDeployment  = "APP_DEPLOYMENT"
	EnvAppMode     = "APP_MODE"
	EnvAppRegion   = "APP_REGION"
	EnvAppZone     = "APP_ZONE"
	EnvAppHost     = "APP_HOST"
	EnvAppInstance = "APP_INSTANCE" // application unique instance id.
	EnvPodIP       = "POD_IP"       //k8s环境
	EnvPodNAME     = "POD_NAME"     //k8s环境
)

EnvAppName ...

View Source
const (
	// DefaultDeployment ...
	DefaultDeployment = ""
	// DefaultRegion ...
	DefaultRegion = ""
	// DefaultZone ...
	DefaultZone = ""
)

DefaultDeployment ...

View Source
const (
	// KeyBalanceGroup ...
	KeyBalanceGroup = "__group"

	// DefaultBalanceGroup ...
	DefaultBalanceGroup = "default"
)

KeyBalanceGroup ...

View Source
const (
	// KeyRouteConfig ...
	KeyRouteConfig = "__route_config_"

	// KeyRouteGroup ...
	KeyRouteGroup = "__route_group_"

	// KeyProviderConfig ...
	KeyProviderConfig = "__provider_config_"

	// KeyConsumerConfig ...
	KeyConsumerConfig = "__consumer_config_"

	// KeyServiceInfo
	KeyServiceInfo = "__service_info_"
)

KeyRouteConfig ...

Variables

View Source
var (
	// ConfigPrefix 配置前缀
	// ConfigPrefix = "ratel"
	// DefaultNamespace 默认命名空间
	DefaultNamespace = "ratel"
)

DefaultNamespace ...

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
	//ServiceMonitor service monitor
	ServiceMonitor
	//ServiceConsumer service consumer
	ServiceConsumer
)

ServiceUnknown ...

func (ServiceKind) String

func (sk ServiceKind) String() string

String ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL