Documentation
¶
Index ¶
Constants ¶
View Source
const ( // CESS token precision CESSTokenPrecision = 1_000_000_000_000 // MinimumBalance is the minimum balance required for the program to run // The unit is pico MinimumBalance = 2 * CESSTokenPrecision )
account
View Source
const ( SIZE_1KiB = 1024 SIZE_1MiB = 1024 * SIZE_1KiB SIZE_1GiB = 1024 * SIZE_1MiB )
byte size
View Source
const ( Header_Auth = "Authorization" Header_BucketName = "BucketName" Header_Account = "Account" Header_Operation = "Operation" TokenDated = 60 * 60 * 24 * 30 )
http
View Source
const ( // Tcp message interval TCP_Message_Interval = time.Duration(time.Millisecond * 10) // Number of tcp message caches TCP_Message_Send_Buffers = 10 TCP_Message_Read_Buffers = 10 // TCP_SendBuffer = 8192 TCP_ReadBuffer = 12000 // Tcp_Dial_Timeout = time.Duration(time.Second * 5) )
View Source
const ( // Time out waiting for transaction completion TimeOut_WaitBlock = time.Duration(time.Second * 15) // DirPermission = 755 )
View Source
const ( HELP_common = `Please check with the following help information: 1.Check if the wallet balance is sufficient 2.Block hash:` HELP_register = `` /* 216-byte string literal not displayed */ HELP_update = `` /* 214-byte string literal not displayed */ )
explanation
View Source
const ( // name Name = "cess-oss" // Name space NameSpace = Name // version Version = Name + " " + "v0.1.2" // description Description = "Implementation of object storage service based on cess platform" )
system
View Source
const ( // base dir BaseDir = Name // log file dir Log = "log" // database dir Cache = "cache" // file dir File = "file" )
View Source
const ( // BlockInterval is the time interval for generating blocks, in seconds BlockInterval = time.Second * time.Duration(6) )
Variables ¶
View Source
var (
LogFiles = []string{
"common",
"upfile",
"panic",
"downfile",
}
)
log file
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.