constant

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

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 ConfigKey

func ConfigKey(key ...string) string

func GetConfigPrefix

func GetConfigPrefix() string

func SetConfigPrefix

func SetConfigPrefix(prefix string)

Types

type Module

type Module int

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

Jump to

Keyboard shortcuts

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