bus

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bus

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

func New

func New(bufSize int) *Bus

func (*Bus) Publish

func (b *Bus) Publish(eventType string, properties any)

func (*Bus) SubscribeAll

func (b *Bus) SubscribeAll() <-chan Event

func (*Bus) Unsubscribe

func (b *Bus) Unsubscribe(ch <-chan Event)

type Event

type Event struct {
	Type       string          `json:"type"`
	Properties json.RawMessage `json:"properties"`
}

Jump to

Keyboard shortcuts

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