mrsender

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: Apache-2.0 Imports: 1 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventEmitter

type EventEmitter interface {
	Emit(ctx context.Context, eventName string, object any)
	EmitWithSource(ctx context.Context, eventName, source string, object any)
}

EventEmitter - отправитель событий.

type EventReceiveFunc added in v0.25.0

type EventReceiveFunc func(ctx context.Context, eventName, source string, object any)

EventReceiveFunc - получатель событий в виде функции.

func (EventReceiveFunc) Receive added in v0.25.0

func (f EventReceiveFunc) Receive(ctx context.Context, eventName, source string, object any)

Receive - реализация интерфейса EventReceiver для получения события.

type EventReceiver added in v0.25.0

type EventReceiver interface {
	Receive(ctx context.Context, eventName, source string, object any)
}

EventReceiver - получатель событий.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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