consts

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 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"

	ApiConfigPath     = "./server/cmd/api/config.yaml"
	AuthConfigPath    = "./server/cmd/auth/config.yaml"
	BlobConfigPath    = "./server/cmd/blob/config.yaml"
	CarConfigPath     = "./server/cmd/car/config.yaml"
	ProfileConfigPath = "./server/cmd/profile/config.yaml"
	TripConfigPath    = "./server/cmd/trip/config.yaml"

	ApiGroup    = "API_GROUP"
	AuthGroup   = "AUTH_GROUP"
	BlobGroup   = "BLOB_GROUP"
	CarGroup    = "CAR_GROUP"
	RentalGroup = "RENTAL_GROUP"

	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"

	DefaultLicNumber = "100000000001"
	DefaultName      = "FreeCar"
	DefaultGender    = 1
	DefaultBirth     = 631152000000
)

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