This repository has been archived on 2024-04-15 . You can view files and clone it. You cannot open issues or pull requests or push a commit.
main
Minecraft server Runner
This is a simple runner for you to run your servers remotely, it quickly just receives the commands and synchronizes with the Server that manages the requests, separating some functions that can be completely independent.
Paths request's
-
POST/registerRegister runner in server, and return runnerID
body:
{ "token": "" // Runner token }-
OK:
{ "runnerID": "${string}_${string}_${string}_${string}", // Unique Runner ID } -
Fail:
Responde code: !
200(Any, non 200).
-
-
GET/acts/{runnerID}Get activitys to run in runner and return status
[ { "type": 0, // Activity type, Check types in "/src/runner.ts". "id": 0, // Activity ID. "serverUUID": "", // Server UUID to server action, if create server in runner it is not necessary. ... }, ... ] -
POST/acts/{runnerID}Register activity status.
-
OK:
{ "id": 0, // Activity id. } -
Fail:
{ "id": 0, // Activity id. "errors": [ { "message": "", // Message error "stack": [ "", null ] // string or undefined }, ... ] }
-
Log path
Web socket (prefer)
-
SOCKET/log/{sessionID}Get Socket connection to send
stdout|stderrand writestdinin server.
Loop fetch
-
PUT/log/{sessionID}/{stdout|stderr}Log server chuck log
Body:
binary|text -
GET/log/{sessionID}/stdinLoop fetch
binaryortextto write in server stdin
Languages
TypeScript
80.9%
JavaScript
19.1%