eventbus

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 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 EVMActivatedChainEvent

type EVMActivatedChainEvent struct {
	ChainReferenceID      string
	SmartContractUniqueID []byte
}

type Event

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

func EVMActivatedChain

func EVMActivatedChain() *Event[EVMActivatedChainEvent]

func SkywayBatchBuilt

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

type SkywayBatchBuiltEvent struct {
	ChainReferenceID string
}

Jump to

Keyboard shortcuts

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