docs: add a name mnemonic to every module README and the root modules table
This commit is contained in:
@@ -4,6 +4,8 @@ Typed, synchronous event bus with listener priorities, payload collection and st
|
||||
|
||||
`import "git.golem15.com/golem15/summercms/modules/festival"`
|
||||
|
||||
**Name:** A summer festival announces events and the crowd reacts; it is the event bus.
|
||||
|
||||
## Overview
|
||||
|
||||
`festival` is the SummerCMS counterpart of WinterCMS's `Event::listen` and `Event::fire`, the mechanism plugins use to extend each other without direct calls. Events are routed by their Go type rather than by a string name, so a listener registered for `*PostPublished` receives exactly that type, and a payload mismatch is a compile error. Each application owns one bus: [backpack](../backpack/README.md) creates it in `backpack.New` and exposes it as `backpack.App.Events`, and plugins register listeners from their Boot step.
|
||||
|
||||
Reference in New Issue
Block a user