Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLocalBus ¶
NewLocalBus creates a new localBus instance and configures it with the given options.
Types ¶
type Option ¶
type Option func(bus *localBus)
Option is a function that configures a localBus
func WithBufferSize ¶
WithBufferSize sets the size of the event buffer. If the buffer is full, Publish will block until there is space in the buffer.
func WithContext ¶ added in v0.5.1
func WithLogger ¶
WithLogger sets the logger to use by the localBus.
Click to show internal directories.
Click to hide internal directories.