2 releases
0.1.1 | Aug 30, 2023 |
---|---|
0.1.0 | Jul 13, 2023 |
#1761 in Game dev
39KB
672 lines
dummy-agones
Dummy Agones SDK server for testing Agones integration.
Note: proto
comes directly from the agones repository.
Usage
The server (started with dummy-agones
) will serve HTTP traffic on port 9357 (Agones SDK default).
Apart from Agones SDK's gRPC it handles following endpoints:
GET /
- to retrieve currentGameServer
configuration as YAMLPOST /
- with YAML data to updateGameServer
configuration
Retrieving configuration:
$ curl http://localhost:9357
---
objectMeta: ~
spec: ~
status: ~
Updating configuration (--data-binary @file.yaml
can be handy):
$ curl -H 'Content-Type: application/yaml' --data-binary 'status: {state: "Allocated", address: "", ports: []}' http://localhost:9357
---
objectMeta: ~
spec: ~
status:
state: Allocated
address: ""
ports: []
players: ~
All changes are reflected in Agones SDK gRPC and all watchers are notified when there's a change.
Dependencies
~18–30MB
~479K SLoC