Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Default = New()
)
View Source
var (
ErrNotProcessor = fmt.Errorf("no processor registerd")
)
Functions ¶
This section is empty.
Types ¶
type DispatcherFunc ¶
type DisposeFunc ¶
type DisposeFunc func() error
func (DisposeFunc) Dispose ¶
func (d DisposeFunc) Dispose() error
type IDisposable ¶
type IDisposable interface {
Dispose() error
}
type ProcessableFunc ¶
type ProcessableFunc[TEvent any, TResult any] func(processor Processor[TEvent, TResult]) (IDisposable, error)
func AddProcessor ¶
func AddProcessor[TEvent any, TResult any](es ...*EventBus) ProcessableFunc[TEvent, TResult]
type PublisherFunc ¶
func Publish ¶
func Publish[TEvent any](es ...*EventBus) PublisherFunc[TEvent]
type SubscribeFunc ¶
type SubscribeFunc[TEvent any] func(handler Handler[TEvent]) (IDisposable, error)
func Subscribe ¶
func Subscribe[TEvent any](es ...*EventBus) SubscribeFunc[TEvent]
type SubscribeOnceFunc ¶
type SubscribeOnceFunc[TEvent any] func(handler Handler[TEvent]) (IDisposable, error)
func SubscribeOnce ¶
func SubscribeOnce[TEvent any](es ...*EventBus) SubscribeOnceFunc[TEvent]
Click to show internal directories.
Click to hide internal directories.