Skip to content
Snippets Groups Projects
key.go 6.55 KiB
Newer Older
AlexStocks's avatar
AlexStocks committed
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
fangyincheng's avatar
fangyincheng committed

fangyincheng's avatar
fangyincheng committed
package constant

const (
	ASYNC_KEY = "async" // it's value should be "true" or "false" of string type
)
vito.he's avatar
vito.he committed
	GROUP_KEY              = "group"
	VERSION_KEY            = "version"
	INTERFACE_KEY          = "interface"
	PATH_KEY               = "path"
	SERVICE_KEY            = "service"
	METHODS_KEY            = "methods"
	TIMEOUT_KEY            = "timeout"
	CATEGORY_KEY           = "category"
	CHECK_KEY              = "check"
	ENABLED_KEY            = "enabled"
	SIDE_KEY               = "side"
	OVERRIDE_PROVIDERS_KEY = "providerAddresses"
	BEAN_NAME_KEY          = "bean.name"
	GENERIC_KEY            = "generic"
	CLASSIFIER_KEY         = "classifier"
xujianhai666's avatar
xujianhai666 committed
	TOKEN_KEY              = "token"
Ming Deng's avatar
Ming Deng committed
	LOCAL_ADDR             = "local-addr"
	REMOTE_ADDR            = "remote-addr"
邹毅贤's avatar
邹毅贤 committed
	PATH_SEPARATOR         = "/"
)

const (
	SERVICE_FILTER_KEY   = "service.filter"
	REFERENCE_FILTER_KEY = "reference.filter"
)
	TIMESTAMP_KEY                          = "timestamp"
	REMOTE_TIMESTAMP_KEY                   = "remote.timestamp"
	CLUSTER_KEY                            = "cluster"
	LOADBALANCE_KEY                        = "loadbalance"
	WEIGHT_KEY                             = "weight"
	WARMUP_KEY                             = "warmup"
	RETRIES_KEY                            = "retries"
Ooo0oO0o0oO's avatar
Ooo0oO0o0oO committed
	STICKY_KEY                             = "sticky"
	BEAN_NAME                              = "bean.name"
	FAIL_BACK_TASKS_KEY                    = "failbacktasks"
	FORKS_KEY                              = "forks"
	DEFAULT_FORKS                          = 2
	DEFAULT_TIMEOUT                        = 1000
	ACCESS_LOG_KEY                         = "accesslog"
	TPS_LIMITER_KEY                        = "tps.limiter"
	TPS_REJECTED_EXECUTION_HANDLER_KEY     = "tps.limit.rejected.handler"
	TPS_LIMIT_RATE_KEY                     = "tps.limit.rate"
	DEFAULT_TPS_LIMIT_RATE                 = "-1"
	TPS_LIMIT_INTERVAL_KEY                 = "tps.limit.interval"
	DEFAULT_TPS_LIMIT_INTERVAL             = "60000"
	TPS_LIMIT_STRATEGY_KEY                 = "tps.limit.strategy"
	EXECUTE_LIMIT_KEY                      = "execute.limit"
	DEFAULT_EXECUTE_LIMIT                  = "-1"
	EXECUTE_REJECTED_EXECUTION_HANDLER_KEY = "execute.limit.rejected.handler"
Ming Deng's avatar
Ming Deng committed
	PROVIDER_SHUTDOWN_FILTER               = "pshutdown"
	CONSUMER_SHUTDOWN_FILTER               = "cshutdown"
fangyincheng's avatar
fangyincheng committed

const (
	DUBBOGO_CTX_KEY = "dubbogo-ctx"
)
	REGISTRY_KEY         = "registry"
	REGISTRY_PROTOCOL    = "registry"
	ROLE_KEY             = "registry.role"
	REGISTRY_DEFAULT_KEY = "registry.default"
	REGISTRY_TIMEOUT_KEY = "registry.timeout"
邹毅贤's avatar
邹毅贤 committed
	APPLICATION_KEY          = "application"
	ORGANIZATION_KEY         = "organization"
	NAME_KEY                 = "name"
	MODULE_KEY               = "module"
	APP_VERSION_KEY          = "app.version"
	OWNER_KEY                = "owner"
	ENVIRONMENT_KEY          = "environment"
	METHOD_KEY               = "method"
	METHOD_KEYS              = "methods"
	RULE_KEY                 = "rule"
	RUNTIME_KEY              = "runtime"
	BACKUP_KEY               = "backup"
	ROUTERS_CATEGORY         = "routers"
	ROUTE_PROTOCOL           = "route"
	CONDITION_ROUTE_PROTOCOL = "condition"
	PROVIDERS_CATEGORY       = "providers"
	ROUTER_KEY               = "router"
vito.he's avatar
vito.he committed
const (
vito.he's avatar
vito.he committed
	CONFIG_NAMESPACE_KEY  = "config.namespace"
xujianhai666's avatar
xujianhai666 committed
	CONFIG_GROUP_KEY      = "config.group"
	CONFIG_APP_ID_KEY     = "config.appId"
xujianhai666's avatar
xujianhai666 committed
	CONFIG_CLUSTER_KEY    = "config.cluster"
	CONFIG_CHECK_KEY      = "config.check"
vito.he's avatar
vito.he committed
	CONFIG_TIMEOUT_KET    = "config.timeout"
	CONFIG_VERSION_KEY    = "configVersion"
	COMPATIBLE_CONFIG_KEY = "compatible_config"
vito.he's avatar
vito.he committed
)
	RegistryConfigPrefix       = "dubbo.registries."
	SingleRegistryConfigPrefix = "dubbo.registry."
	ReferenceConfigPrefix      = "dubbo.reference."
	ServiceConfigPrefix        = "dubbo.service."
	ProtocolConfigPrefix       = "dubbo.protocols."
	ProviderConfigPrefix       = "dubbo.provider."
	ConsumerConfigPrefix       = "dubbo.consumer."
Ming Deng's avatar
Ming Deng committed
	ShutdownConfigPrefix       = "dubbo.shutdown."
邹毅贤's avatar
邹毅贤 committed
	RouterConfigPrefix         = "dubbo.router."
lzp0412's avatar
lzp0412 committed

const (
	CONFIGURATORS_SUFFIX = ".configurators"
)

lzp0412's avatar
lzp0412 committed
const (
lizhipeng1's avatar
lizhipeng1 committed
	NACOS_KEY                    = "nacos"
lzp0412's avatar
lzp0412 committed
	NACOS_DEFAULT_ROLETYPE       = 3
	NACOS_CACHE_DIR_KEY          = "cacheDir"
	NACOS_LOG_DIR_KEY            = "logDir"
	NACOS_ENDPOINT               = "endpoint"
	NACOS_SERVICE_NAME_SEPARATOR = ":"
	NACOS_CATEGORY_KEY           = "category"
	NACOS_PROTOCOL_KEY           = "protocol"
	NACOS_PATH_KEY               = "path"
)
flycash's avatar
flycash committed

const (
flycash's avatar
flycash committed
	TRACING_REMOTE_SPAN_CTX = "tracing.remote.span.ctx"
flycash's avatar
flycash committed
)
邹毅贤's avatar
邹毅贤 committed

// Use for router module
const (
	// ConditionRouterName Specify file condition router name
	ConditionRouterName = "condition"
	// ConditionAppRouterName Specify listenable application router name
	ConditionAppRouterName = "app"
	// ListenableRouterName Specify listenable router name
CodingSinger's avatar
CodingSinger committed
	ListenableRouterName  = "listenable"
CodingSinger's avatar
CodingSinger committed
	HealthCheckRouterName = "health_check"
邹毅贤's avatar
邹毅贤 committed

	// ConditionRouterRuleSuffix Specify condition router suffix
	ConditionRouterRuleSuffix = ".condition-router"

	// Force Force key in router module
	RouterForce = "force"
	// Enabled Enabled key in router module
	RouterEnabled = "enabled"
	// Priority Priority key in router module
	RouterPriority = "priority"
)
const (
	CONSUMER_SIGN_FILTER          = "sign"
	PROVIDER_AUTH_FILTER          = "auth"
Ooo0oO0o0oO's avatar
Ooo0oO0o0oO committed
	SERVICE_AUTH_KEY              = "auth"
	AUTHENTICATOR_KEY             = "authenticator"
	DEFAULT_AUTHENTICATOR         = "accesskeys"
	DEFAULT_ACCESS_KEY_STORAGE    = "urlstorage"
	ACCESS_KEY_STORAGE_KEY        = "accessKey.storage"
	REQUEST_TIMESTAMP_KEY         = "timestamp"
	REQUEST_SIGNATURE_KEY         = "signature"
	AK_KEY                        = "ak"
	SIGNATURE_STRING_FORMAT       = "%s#%s#%s#%s"
	PARAMTER_SIGNATURE_ENABLE_KEY = "param.sign"
	CONSUMER                      = "consumer"
Ooo0oO0o0oO's avatar
Ooo0oO0o0oO committed
	ACCESS_KEY_ID_KEY             = "accessKeyId"
	SECRET_ACCESS_KEY_KEY         = "secretAccessKey"