feat 结构调整

This commit is contained in:
2025-12-20 15:39:25 +08:00
parent 55c5d4cc18
commit ff1bd1d0b6
96 changed files with 4904 additions and 350 deletions

View File

@@ -0,0 +1,28 @@
package ws
import (
"common/utils"
"robot/config"
"strconv"
"time"
)
type Manager struct {
addr string
}
func NewManager(addr string) *Manager {
c := &Manager{
addr: addr,
}
return c
}
func (c *Manager) Start() {
cfg := config.Get().Client
for i := int32(0); i < cfg.Count; i++ {
client := NewClient(c.addr, strconv.Itoa(utils.RandInt(int(cfg.UID[0]), int(cfg.UID[1]))))
client.Start()
time.Sleep(time.Millisecond * 10)
}
}