Documentation ¶
Index ¶
Constants ¶
View Source
const ( //success Code_200 = 200 //bad request Code_400 = 400 //forbidden Code_403 = 403 //not found Code_404 = 404 //server internal error Code_500 = 500 //The block was produced but the event was not resolved Code_600 = 600 )
return code
View Source
const ( SIZE_1KiB = 1024 SIZE_1MiB = SIZE_1KiB * 1024 // 1MB SIZE_1GiB = SIZE_1MiB * 1024 FillerSize = 8 * SIZE_1MiB TimeToWaitEvents_S = 20 //The time to wait for the event, in seconds TokenAccuracy = "000000000000" //Unit precision of CESS coins ExitColling = 28800 //blocks BlockSize = 1024 * 1024 //1MB ScanBlockSize = 512 * 1024 //512KB // the time to wait for the event, in seconds TimeToWaitEvents = time.Duration(time.Second * 15) )
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 = `` /* 214-byte string literal not displayed */ HELP_UpdateAddress = `` /* 212-byte string literal not displayed */ HELP_UpdataBeneficiary = `` /* 221-byte string literal not displayed */ )
View Source
const ConfigFile_Templete = `` /* 505-byte string literal not displayed */
View Source
const Version = "CESS-Bucket v0.5.3"
type and version
Variables ¶
View Source
var ( Spk []byte //data path BaseDir = "bucket" LogfileDir = "/log" SpaceDir = "space" FilesDir = "files" )
Miner info updated at runtime
View Source
var C = new(Confile)
View Source
var ConfFilePath string
Functions ¶
This section is empty.
Types ¶
type Confile ¶
type Confile struct { RpcAddr string `toml:"RpcAddr"` MountedPath string `toml:"MountedPath"` StorageSpace uint64 `toml:"StorageSpace"` ServiceIP string `toml:"ServiceIP"` ServicePort uint32 `toml:"ServicePort"` IncomeAcc string `toml:"IncomeAcc"` SignatureAcc string `toml:"SignatureAcc"` DomainName string `toml:"DomainName"` }
Click to show internal directories.
Click to hide internal directories.