eventbus

package
v1.15.7 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event[E any] struct {
	// contains filtered or unexported fields
}

func SkywayBatchBuilt added in v1.15.2

func SkywayBatchBuilt() *Event[SkywayBatchBuiltEvent]

func (Event[E]) Publish

func (e Event[E]) Publish(ctx context.Context, event E)

func (Event[E]) Subscribe

func (e Event[E]) Subscribe(id string, fn EventHandler[E])

func (Event[E]) Unsubscribe

func (e Event[E]) Unsubscribe(id string)

type EventHandler

type EventHandler[E any] func(context.Context, E) error

type SkywayBatchBuiltEvent added in v1.15.2

type SkywayBatchBuiltEvent struct {
	ChainReferenceID string
}

Jump to

Keyboard shortcuts

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