process

package
v2.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Eventbus

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

func NewEventbus

func NewEventbus() *Eventbus

func (*Eventbus) Close

func (eb *Eventbus) Close() error

Close stops listening.

func (*Eventbus) Publish

func (eb *Eventbus) Publish(ctx context.Context, topic string, payload any) error

Publish publishes an event.

func (*Eventbus) Subscribe

func (eb *Eventbus) Subscribe(ctx context.Context, topic string, handler eventbus.EventHandler, balance ...bool) (eventbus.Subscription, error)

Subscribe subscribes to an event.

Jump to

Keyboard shortcuts

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