Documentation ¶
Index ¶
Constants ¶
View Source
const ( TaskStateUnknown = 0 TaskStateRunning = 1 TaskStatePaused = 2 TaskStateDied = 3 TaskStateCalculating = 4 TaskStateSpecialBrk = 5 )
Variables ¶
View Source
var ActivateTaskStatus chan bool = make(chan bool)
View Source
var BrokSender chan string = make(chan string)
View Source
var ExportWaiter chan map[string]interface{}
View Source
var ExtraDisplayStrings []string = []string{}
View Source
var ProgressThemes = []func(*AsyncInfo) string{ func(asyncInfo *AsyncInfo) string { return fmt.Sprintf("%d/%d(%.2f%%) %.2fblocks/s", asyncInfo.Built, asyncInfo.Total, (float64(asyncInfo.Built)/float64(asyncInfo.Total))*100, float64(asyncInfo.Built)/time.Now().Sub(asyncInfo.BeginTime).Seconds()) }, }
View Source
var TaskIdCounter *atomic.Int64 = atomic.NewInt64(0)
View Source
var TaskMap sync.Map
Functions ¶
func GetStateDesc ¶
func InitTaskStatusDisplay ¶
Types ¶
type SolidRet ¶
type SolidRet struct { BlockName string `json:"blockName"` Position SolidSimplePos `json:"position"` StatusCode int64 `json:"statusCode"` }
type SolidSimplePos ¶
Click to show internal directories.
Click to hide internal directories.