Directories
¶
| Path | Synopsis |
|---|---|
|
Package assets is a minimal client for assets-web's authenticated asset store (GET/POST/DELETE /asset/<kind>/<id>), used to promote a staged cover/sample to live (or reclaim it) on volume edit session finalize/accept/reject.
|
Package assets is a minimal client for assets-web's authenticated asset store (GET/POST/DELETE /asset/<kind>/<id>), used to promote a staged cover/sample to live (or reclaim it) on volume edit session finalize/accept/reject. |
|
Package authz calls auth-api's POST /authz/check to verify a caller's bearer token and resolve their roles, and provides Gin middleware that gates a route on holding one of a set of allowed roles.
|
Package authz calls auth-api's POST /authz/check to verify a caller's bearer token and resolve their roles, and provides Gin middleware that gates a route on holding one of a set of allowed roles. |
|
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
|
|
|
catalog-api
command
|
|
|
migrate-volumes
command
Command migrate-volumes is the one-time cutover for catalog-entity-versioning's volume meta+version data model (see openspec's design.md Migration Plan).
|
Command migrate-volumes is the one-time cutover for catalog-entity-versioning's volume meta+version data model (see openspec's design.md Migration Plan). |
|
Package docs Code generated by swaggo/swag.
|
Package docs Code generated by swaggo/swag. |
|
Package editsession reads/deletes the shared, session-backed volume edit state that catalog-web writes to Redis (REDIS_DB=2 on catalog-api's own Redis instance - see docs/frontend-conventions.md's edit-session schema in sweetrpg/platform).
|
Package editsession reads/deletes the shared, session-backed volume edit state that catalog-web writes to Redis (REDIS_DB=2 on catalog-api's own Redis instance - see docs/frontend-conventions.md's edit-session schema in sweetrpg/platform). |
|
Package proposedchanges stores field-level proposed edits to a record (a volume today, other record types later - see design.md's "generic proposed-change shape" decision) separately from the live record until an editor/admin reviews them.
|
Package proposedchanges stores field-level proposed edits to a record (a volume today, other record types later - see design.md's "generic proposed-change shape" decision) separately from the live record until an editor/admin reviews them. |
|
Package ratelimit implements a Redis-backed, per-client, per-route-tier request rate limiter.
|
Package ratelimit implements a Redis-backed, per-client, per-route-tier request rate limiter. |
|
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. |
|
Package submissioncap tracks the per-user override on how many pending (unapproved) proposed changes a submitter may have open at once - checked at volume edit session finalize time (durable-volume-editing task 5.1, sweetrpg/platform#38).
|
Package submissioncap tracks the per-user override on how many pending (unapproved) proposed changes a submitter may have open at once - checked at volume edit session finalize time (durable-volume-editing task 5.1, sweetrpg/platform#38). |
|
Package vocabularies stores the shared, growable "pick-or-add" lists used across volume editing (contribution types, property names, formats) - one generic mechanism instead of three near-duplicate collections, per durable-volume-editing's design.md.
|
Package vocabularies stores the shared, growable "pick-or-add" lists used across volume editing (contribution types, property names, formats) - one generic mechanism instead of three near-duplicate collections, per durable-volume-editing's design.md. |
Click to show internal directories.
Click to hide internal directories.