Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CephAccessKey : 访问Key CephAccessKey = "PFEA7NXWXSOWVTFA16C9" // CephSecretKey : 访问密钥 CephSecretKey = "cf3dwPMeadGbtEgwFUEA6emRVrVfDHpv0pLXFYby" // CephGWEndpoint : gateway地址 CephGWEndpoint = "http://<你的rgw_host>:<<你的rgw_port>>" )
View Source
const ( // AsyncTransferEnable : File Asynchronous Transfer(Default is Synchronous) AsyncTransferEnable = false // TransExchangeName : exchange name TransExchangeName = "uploadserver.trans" // TransOSSQueueName : oss queue name TransOSSQueueName = "uploadserver.trans.oss" // TransOSSErrQueueName : if oss is failed, write to another queue TransOSSErrQueueName = "uploadserver.trans.oss.err" // TransOSSRoutingKey : routingkey TransOSSRoutingKey = "oss" )
View Source
const ( // UploadServiceHost : 上传服务监听的地址 UploadServiceHost = "0.0.0.0:8080" // UploadLBHost: 上传服务LB地址 //UploadLBHost = "http://upload.fileserver.com" UploadLBHost = "http://localhost:28080" // DownloadLBHost: 下载服务LB地址 //DownloadLBHost = "http://download.fileserver.com" DownloadLBHost = "http://localhost:38080" // TracerAgentHost: tracing agent地址 TracerAgentHost = "127.0.0.1:6831" )
View Source
const ( // TempLocalRootDir : 本地临时存储地址的路径 TempLocalRootDir = "/Users/bigtony/tmp/fileserver/" // TempPartRootDir : 分块文件在本地临时存储地址的路径 TempPartRootDir = "/Users/bigtony/tmp/fileserver_part/" // CephRootDir : Ceph的存储路径prefix CephRootDir = "/ceph" // OSSRootDir : OSS的存储路径prefix OSSRootDir = "oss/" // CurrentStoreType : 设置当前文件的存储类型 CurrentStoreType = cmn.StoreLocal )
View Source
const ( // MySQLSource : 要连接的数据库源; // 其中test:test 是用户名密码; // 127.0.0.1:3306 是ip及端口; // fileserver 是数据库名; // charset=utf8 指定了数据以utf8字符编码进行传输 MySQLSource = "root:123456@tcp(127.0.0.1:3306)/fileserver?charset=utf8" )
View Source
const ( // PasswordSalt : 加密盐 // 更严格来说, 加密盐可以存放在数据库中,每个用户加密盐不一样 PasswordSalt = "#739" )
Variables ¶
View Source
var (
// RabbitURL : rabbitmq service url
RabbitURL = "amqp://guest:guest@127.0.0.1:5672/"
)
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.