Lines Matching refs:res
16 package res
42 var res Resources
45 utils.ParseFromConfigFile("resources", &res)
46 snList := strings.Split(res.DeviceSnList, ",")
47 addrList := strings.Split(res.AddrList, ",")
48 res.devicePool = make(chan string, len(snList))
50 res.devicePool <- sn
52 res.serverPool = make(chan string, len(addrList))
54 res.serverPool <- addr
66 res.devicePool = make(chan string, len(snList))
68 res.devicePool <- sn
70 res.serverPool = make(chan string, len(addrList))
72 res.serverPool <- sn
77 if cap(res.devicePool) < cap(res.serverPool) {
78 return cap(res.devicePool)
80 return cap(res.serverPool)
84 return strings.Split(res.DeviceSnList, ",")
88 return <-res.devicePool
92 res.devicePool <- device
96 addr := <-res.serverPool
99 User: res.User,
100 Passwd: res.Passwd,
101 WorkSpace: res.BuildWorkSpace,
106 res.serverPool <- info.Addr