game-room-api

module
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2026 License: MIT

README

SweetRPG Game Room API

Unit tests License Issues PRs Dependabot

Go

HTTP microservice for the SweetRPG Game Room domain (library, wishlist, tables, visibility). Migrated from Python to Go to match the platform's Go microservice baseline. A thin Gin-based layer: server/*.go wires JSON:API routes to game-room-data.go's data-access functions.

Building

go build -v ./...

Testing

go test -v -coverprofile coverage.out ./...

Documentation

API documentation is available at http://localhost:8000/swagger/index.html when the server is running. See service-conventions.md in the platform repo for more details on the Go microservice baseline.

Directories

Path Synopsis
Package cachettl resolves the cache TTL for a given route group, loaded once at startup from the CACHE_TTLS env var so slower-changing entities and faster-changing ones aren't forced onto the same cache policy.
Package cachettl resolves the cache TTL for a given route group, loaded once at startup from the CACHE_TTLS env var so slower-changing entities and faster-changing ones aren't forced onto the same cache policy.
cmd
consumer command
game-room-api command
migrate-table-volume-titles command
migrate-table-volume-titles runs the one-time structural migration that ensures every table document has a volume_titles object, setting it to an empty object on tables stored before the denormalized-title sidecar existed.
migrate-table-volume-titles runs the one-time structural migration that ensures every table document has a volume_titles object, setting it to an empty object on tables stored before the denormalized-title sidecar existed.
migrate-wishlist-names command
migrate-wishlist-names runs the one-time migration that backfills the default wishlist name onto documents stored before the multi-wishlist cutover.
migrate-wishlist-names runs the one-time migration that backfills the default wishlist name onto documents stored before the multi-wishlist cutover.
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
internal
Package readiness tracks the reachability of backend dependencies (beyond Mongo, which api-core.go's HealthHandler already covers) so /status/health can fail loud instead of the service silently degrading to an uncached or unlimited mode.
Package readiness tracks the reachability of backend dependencies (beyond Mongo, which api-core.go's HealthHandler already covers) so /status/health can fail loud instead of the service silently degrading to an uncached or unlimited mode.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL