consts

package
v0.0.0-...-20002e4 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JWTIssuer  = "FreeCar"
	ThirtyDays = 60 * 60 * 24 * 30
	AccountID  = "accountID"
	ID         = "id"

	NacosConfigPath = "./config/nacos_config.yaml"

	NacosLogDir   = "tmp/nacos/log"
	NacosCacheDir = "tmp/nacos/cache"
	NacosLogLevel = "debug"

	HlogFilePath = "./tmp/hlog/logs/"
	KlogFilePath = "./tmp/klog/logs/"

	MySqlDSN    = "%s:%s@tcp(%s:%d)/%s?charset=utf8mb4&parseTime=True&loc=Local"
	MongoURI    = "mongodb://%s:%s@%s:%d"
	RabbitMqURI = "amqp://%s:%s@%s:%d/"

	IPFlagName  = "ip"
	IPFlagValue = "0.0.0.0"
	IPFlagUsage = "address"

	PortFlagName  = "port"
	PortFlagUsage = "port"

	TCP = "tcp"

	FreePortAddress = "localhost:0"
)
View Source
const (
	EnvKey   = "HOST_ENV" // 配置的环境变量
	LocalEnv = "local"    // 本地开发变量
	DevEnv   = "dev"      // dev 环境
	TestEnv  = "test"
	ProdEnv  = "prod"
)

环境相关的.

View Source
const (
	OssGroup  = "OSS_GROUP"
	OssDataId = "oss_srv"

	ApiGroup  = "API_GROUP"
	ApiDataId = "api"

	MqGroup  = "MQ_GROUP"
	MqDataId = "mq_srv"

	TranslateGroup  = "TRANSLATE_GROUP"
	TranslateDataId = "translate_srv"
)

和 nacos 相关的微服务 常量.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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