Skip to main content

Module handler

Module handler 

Source
Expand description

Handler registration seam — the boundary between generated adapters and game-owned domain logic.

Galeon generates adapter glue. The game project implements handlers. Both local and remote adapters target the same HandlerRegistry.

§Architecture

Protocol definitions (game crate)
        │
        ▼
┌─────────────────┐
│ HandlerRegistry │ ← game registers handlers here
└────────┬────────┘
         │
    ┌────┴────┐
    ▼         ▼
  Local    Remote
 Adapter   Adapter

§Design Rules

  • One command type → one handler entry
  • One query type → one handler entry
  • Game project owns all handlers; Galeon does not generate domain logic
  • Local and remote adapters target the same boundary

Structs§

HandlerRegistry
Registry of command and query handlers.

Traits§

CommandHandler
Handler for a command type. Game project implements this.
QueryHandler
Handler for a query type. Game project implements this.