Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Callback ¶
type Callback[T Channelizer] func(*Message[T])
type Channelizer ¶
type Message ¶
type Monitor ¶
type Monitor[T Channelizer] struct { // contains filtered or unexported fields }
func NewMonitor ¶
func NewMonitor[T Channelizer](dsn string, t T, receiver Callback[T]) *Monitor[T]
func (*Monitor[T]) GetListenerCount ¶
func (*Monitor[T]) GetListeners ¶
func (m *Monitor[T]) GetListeners(data T) (chs []chan T)
func (*Monitor[T]) RemoveListener ¶
func (m *Monitor[T]) RemoveListener(ch chan T)
func (*Monitor[T]) SetListener ¶
func (m *Monitor[T]) SetListener(data T, ch chan T)
Click to show internal directories.
Click to hide internal directories.