Asteroid 客户端
git clone https://github.com/wuhan005/Asteroid_backend
go mod tidy
go build -o Asteroid
创建team.txt
文件,队伍名一行一个。
运行:
./Asteroid
--port
HTTP 监听端口(默认:12345)--token
HTTP Authorization 请求头(默认随机字符串)
- Request Header:
Authorization: YOUR_TOKEN_HERE
{
"From": 1,
"To": 2
}
{
"Team": [
{
"Id": 0,
"Rank": 1,
"Score": 1000
},
{
"Id": 1,
"Rank": 2,
"Score": 900
}
]
}
{
"Id": 0,
"Status": "attacked"
}
attacked
被攻击down
被 Check Down
{
"Round": 47
}
{
"Time": 300
}
单位:秒(s)
{
"Id": 0
}
Apache License 2.0