1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-16 00:26:43 +00:00
This commit is contained in:
2020-05-03 23:32:38 +08:00
parent cfc9d9f8b2
commit 259409c77b
6 changed files with 363 additions and 173 deletions

View File

@@ -6,6 +6,7 @@ import (
"time"
"io"
"net/http"
"sync"
)
type Configuration struct {
@@ -195,6 +196,14 @@ type MsgOptimizerPredict struct {
Post int `json:"post"`
}
type PoolSeg struct {
ID int
Nodes map[string]*NodeStatus
Lock sync.Mutex
Next *PoolSeg
IsVirtual bool
}
func str2int(str string, defaultValue int) int {
i, err := strconv.Atoi(str)
if err == nil {