mirror of
https://github.com/ultravioletrs/cocos.git
synced 2026-06-23 04:10:25 +00:00
c14a6338cc
* enhance timeline Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> * fix: remove redundant event Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> * use constant Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> * lint Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> * use typed constant for status Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> * refactor status Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> * export agent status and state Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> * ehance event states Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> * fix tests Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> * use manager states and status Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> * move algo-run to agent package Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> * replace literal with constant Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> * replace manager variable with constant Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> --------- Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
32 lines
858 B
Go
32 lines
858 B
Go
// Code generated by "stringer -type=State"; DO NOT EDIT.
|
|
|
|
package agent
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[Idle-0]
|
|
_ = x[ReceivingManifest-1]
|
|
_ = x[ReceivingAlgorithm-2]
|
|
_ = x[ReceivingData-3]
|
|
_ = x[Running-4]
|
|
_ = x[ConsumingResults-5]
|
|
_ = x[Complete-6]
|
|
_ = x[Failed-7]
|
|
_ = x[AlgorithmRun-8]
|
|
}
|
|
|
|
const _State_name = "IdleReceivingManifestReceivingAlgorithmReceivingDataRunningConsumingResultsCompleteFailedAlgorithmRun"
|
|
|
|
var _State_index = [...]uint8{0, 4, 21, 39, 52, 59, 75, 83, 89, 101}
|
|
|
|
func (i State) String() string {
|
|
if i >= State(len(_State_index)-1) {
|
|
return "State(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _State_name[_State_index[i]:_State_index[i+1]]
|
|
}
|