Documentation
¶
Index ¶
Constants ¶
View Source
const ( CONSENSUS_DBFT = "dbft" CONSENSUS_SOLO = "solo" CONSENSUS_VBFT = "vbft" CONSENSUS_POC = "poc" )
View Source
const ( B = 1 KB = 1024 * B MB = 1024 * KB GB = 1024 * MB )
Variables ¶
This section is empty.
Functions ¶
func GetAllFileSize ¶
func InitPolicy ¶
func InitPolicy()
Types ¶
type ConsensusService ¶
type DiskStatus ¶
func DiskUsage ¶
func DiskUsage(path string) (disk DiskStatus)
type Policy ¶
type Policy struct { PolicyLevel PolicyLevel List []common.Address }
var DefaultPolicy *Policy
type PolicyLevel ¶
type PolicyLevel byte
const ( AllowAll PolicyLevel = 0x00 DenyAll PolicyLevel = 0x01 AllowList PolicyLevel = 0x02 DenyList PolicyLevel = 0x03 )
Click to show internal directories.
Click to hide internal directories.