Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Log = log.New()
)
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
func NewDispatcher ¶
func NewDispatcher[T any]() *Dispatcher[T]
func (*Dispatcher[T]) Dispatch ¶
func (d *Dispatcher[T]) Dispatch(value T, ctx context.Context) (err error)
func (*Dispatcher[T]) OnNewSubscriber ¶
func (d *Dispatcher[T]) OnNewSubscriber(hook func(chan<- T))
func (*Dispatcher[T]) Subscribe ¶
func (d *Dispatcher[T]) Subscribe() (c <-chan T, cancel func())
Click to show internal directories.
Click to hide internal directories.