eventbus

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHandlers

func AddHandlers(handlers ...cqrs.EventHandler)

AddHandlers 添加事件处理器

func Close

func Close() error

Close 关闭事件总线

func Init

func Init(handlers ...cqrs.EventHandler)

Init 初始化事件总线并注册处理器

func InitEventBus

func InitEventBus()

InitEventBus 初始化事件总线

func Publish

func Publish(ctx context.Context, event any) error

Publish 发布事件

func Start

func Start() error

Start 启动事件处理器

Types

This section is empty.

Jump to

Keyboard shortcuts

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