The Guild Rapid Alert System Stream (structs-grass) provides a constant real-time stream of all updates to the Structs game state.
GRASS, built on NATS, can be consumed by any supported library or client.
- GRASS messages have two components, a
subjectandpayload. - All GRASS message payloads are sent in
jsonformat. - A
categoryattribute within the payload signals what data can be expected. - a
stubattribute with a boolean value oftruesignals that the payload was too large to include all details. An API call may be needed to retrieve the full information.
Most players within the Structs ecosystem will not need to operate the code in this repository.
In the distant future the species of the galaxy are embroiled in a race for Alpha Matter, the rare and dangerous substance that fuels galactic civilization. Players take command of Structs, a race of sentient machines, and must forge alliances, conquer enemies and expand their influence to control Alpha Matter and the fate of the galaxy.
Structs is a decentralized game in the Cosmos ecosystem, operated and governed by our community of players--ensuring Structs remains online as long as there are players to play it.
go build grass.go
grass -channel grass -dbhost postgres://structs_indexer@localhost:5432/structs -nathost nats://127.0.0.1:4222 Most of this was written by Jon Brown in this blog post, so it doesn't feel right to plaster a license on.