Documentation ¶
Index ¶
Constants ¶
View Source
const ( HLoggerLevel = hlog.LevelError KLoggerLevel = klog.LevelError )
View Source
const ( MinioEndpoint = "localhost:9000" MinioAccessURL = "192.168.246.19:9000" MinioLocalAccessURL = "localhost:9000" MinioAccessKeyId = "tiktokMinio" MinioSecretAccessKey = "tiktokMinio" MinioUseSSL = false MinioVideoBucketName = "tiktok-video" MinioPolicy = "{\"Version\":\"2012-10-17\"," + "\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":" + "{\"AWS\":[\"*\"]},\"Action\":[\"s3:ListBucket\",\"s3:ListBucketMultipartUploads\"," + "\"s3:GetBucketLocation\"],\"Resource\":[\"arn:aws:s3:::" + MinioVideoBucketName + "\"]},{\"Effect\":\"Allow\",\"Principal\":{\"AWS\":[\"*\"]},\"Action\":[\"s3:PutObject\",\"s3:AbortMultipartUpload\",\"s3:DeleteObject\",\"s3:GetObject\",\"s3:ListMultipartUploadParts\"],\"Resource\":[\"arn:aws:s3:::" + MinioVideoBucketName + "/*\"]}]}" )
View Source
const ( MongoUri = "mongodb://localhost:27017/?maxPoolSize=20&w=majority" MongoDataBase = "tiktok-chat" // 数据库 )
View Source
const ( VideoTableName = "video" UserTableName = "user" FavoriteTableName = "favorite" CommentTableName = "comment" MySQLDefaultDSN = "gorm:gorm@tcp(localhost:3306)/gorm?charset=utf8&parseTime=True&loc=Local" )
View Source
const ( ExportEndpoint = ":4317" ETCDAddress = "127.0.0.1:2379" )
View Source
const ( RedisAddr = "localhost:6379" RedisPsw = "123456" RedisDB = 0 TokenExpireFormat = time.RFC3339 TokenExpireDuration = time.Duration(24 * time.Hour) ForeverExpireDuration = -1 )
View Source
const ( ApiServiceName = "api" VideoServiceName = "video" InteractServiceName = "interact" UserServiceName = "user" SocialServiceName = "social" )
View Source
const ( TCP = "tcp" UserServiceAddr = ":7776" InteractServiceAddr = ":7777" VideoServiceAddr = ":7778" SocialServiceAddr = ":7779" )
View Source
const SecretKey = "secret key"
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.