Pre-alpha. No tagged release and no upgrade path between versions. Use for evaluation and development only, not production.
DevelopersPre-alpha

Event bus

Publish/subscribe patterns and which events matter for lead-to-cash.

API

event.Subscribe(name, handler) registers; event.Publish(ctx, ev) runs handlers synchronously and returns collected errors.

Types
text
type Event struct {	EventID   string	Name      string	Timestamp time.Time	Actor     int	Payload   map[string]interface{}}

Lead-to-cash touchpoints

Business flows that chain CRM -> sale -> account rely on committed record.* events and cron-driven work. Exact payload keys remain under active development. Verify in core before hard-coding.

Compile and run

Terminal
shell
make generate && make run

What not to do

  • Do not use the bus as a durable cross-host queue.
  • Do not ignore Publish error slices in critical automation.

Next step

Schedule work with Scheduler, or build listeners in Events & automation.