Crates.io | dummy-agones |
lib.rs | dummy-agones |
version | 0.1.1 |
source | src |
created_at | 2023-07-13 14:03:26.569514 |
updated_at | 2023-08-30 15:26:33.302929 |
description | Dummy Agones SDK server for developing Agones integrations |
homepage | |
repository | https://github.com/pierd/dummy-agones |
max_upload_size | |
id | 915388 |
size | 150,465 |
Dummy Agones SDK server for testing Agones integration.
Note: proto
comes directly from the agones repository.
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 current GameServer
configuration as YAMLPOST /
- with YAML data to update GameServer
configurationRetrieving 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.