Documentation ¶
Index ¶
- func Remove[T any]()
- type IMediator
- type Input
- type MediatePayload
- type Mediator
- type Observable
- func (b *Observable[T, K]) Emit(e string, request T)
- func (b *Observable[T, K]) EmitResponse(e string, request K)
- func (b *Observable[T, K]) EmitWithResponse(e string, requestWrp eventMessage[T, K]) eventMessage[T, K]
- func (obs *Observable[T, K]) NewMediator(actionName string) Mediator[T, K]
- func (b *Observable[T, K]) RemoveRSitter(correlationId, e string, ch *chan eventMessage[T, K])
- func (obs *Observable[T, K]) Subscribe(action string) *chan eventMessage[T, K]
- type Output
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MediatePayload ¶
type Mediator ¶
func (*Mediator[T, K]) AddOrUpdateCallback ¶
func (mtr *Mediator[T, K]) AddOrUpdateCallback(del func(*MediatePayload[T, K]))
type Observable ¶
func CreateOrGet ¶
func CreateOrGet[T any, K any]() *Observable[T, K]
func (*Observable[T, K]) Emit ¶
func (b *Observable[T, K]) Emit(e string, request T)
func (*Observable[T, K]) EmitResponse ¶
func (b *Observable[T, K]) EmitResponse(e string, request K)
func (*Observable[T, K]) EmitWithResponse ¶
func (b *Observable[T, K]) EmitWithResponse(e string, requestWrp eventMessage[T, K]) eventMessage[T, K]
func (*Observable[T, K]) NewMediator ¶
func (obs *Observable[T, K]) NewMediator(actionName string) Mediator[T, K]
func (*Observable[T, K]) RemoveRSitter ¶
func (b *Observable[T, K]) RemoveRSitter(correlationId, e string, ch *chan eventMessage[T, K])
func (*Observable[T, K]) Subscribe ¶
func (obs *Observable[T, K]) Subscribe(action string) *chan eventMessage[T, K]
Click to show internal directories.
Click to hide internal directories.