decorator

package
v0.28.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SourceEmitter

type SourceEmitter struct {
	// contains filtered or unexported fields
}

SourceEmitter - обёртка отправителя событий добавляющая первоисточник.

func NewSourceEmitter

func NewSourceEmitter(eventEmitter mrsender.EventEmitter, source string) *SourceEmitter

NewSourceEmitter - создаёт объект SourceEmitter.

func (*SourceEmitter) Emit

func (e *SourceEmitter) Emit(ctx context.Context, eventName string, object any)

Emit - отправляет указанное событие добавляя первоисточник.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL