Documentation ¶
Index ¶
Constants ¶
View Source
const ( FreeCar = "FreeCar" Issuer = "FreeCar" Admin = "Admin" User = "User" ThirtyDays = time.Hour * 24 * 30 AccountID = "accountID" ID = "id" ApiConfigPath = "./server/cmd/api/config.yaml" UserConfigPath = "./server/cmd/user/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" 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" CorsAddress = "http://localhost:3000" ConsulCheckInterval = "7s" ConsulCheckTimeout = "5s" ConsulCheckDeregisterCriticalServiceAfter = "15s" RedisImage = "redis:latest" RedisContainerPort = "6379/tcp" RedisContainerIP = "127.0.0.1" RedisPort = "0" MySQLImage = "mysql:latest" MySQLContainerPort = "3306/tcp" MySQLContainerIP = "127.0.0.1" MySQLPort = "0" MySQLAdmin = "root" DockerTestMySQLPwd = "123456" MongoImage = "mongo:latest" MongoContainerPort = "27017/tcp" MongoContainerIP = "127.0.0.1" MongoPort = "0" CarCollection = "car" ProfileCollection = "profile" TripCollection = "trip" RedisProfileClientDB = 0 RedisBlobClientDB = 0 RedisCarClientDB = 0 UserSnowflakeNode = 2 BlobSnowflakeNode = 3 AdminSnowflakeNode = 4 LimitOfSomeCars = 20 LimitOfSomeTrips = 20 LimitOfSomeProfiles = 20 LimitOfSomeUsers = 20 OCRUrl = "https://aip.baidubce.com/rest/2.0/ocr/v1/driving_license" GPTUrl = "https://api.openai.com/v1/chat/completions" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.