Documentation
¶
Overview ¶
Package inproc provides an in-process event bus for maniflex. Events are delivered to subscribers via a bounded worker pool whose size is controlled by Subscription.Concurrency. There is no persistence: events published before a subscription is registered, or while the process is down, are lost.
Use inproc for tests and single-binary deployments. For durability pair with events/outbox.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bus ¶
type Bus struct {
// contains filtered or unexported fields
}
Bus is an in-process fan-out event bus.
func (*Bus) Publish ¶
Publish delivers e to all matching subscribers. Each delivery acquires a slot from the subscription's semaphore before calling DeliverWithRetry, so at most Concurrency handlers run concurrently per subscription.
func (*Bus) PublishBatch ¶
PublishBatch publishes each event in es. Each delivery is independent.