dispatch

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actor

type Actor interface {
	Address() string
	Handle(ctx context.Context, envelope any) error
}

Actor is an addressable message handler.

type MemoryRegistry

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

MemoryRegistry is an in-memory address registry with wildcard fallback support.

func NewMemoryRegistry

func NewMemoryRegistry() *MemoryRegistry

func (*MemoryRegistry) Register

func (r *MemoryRegistry) Register(actor Actor) error

func (*MemoryRegistry) Resolve

func (r *MemoryRegistry) Resolve(address string) (Actor, bool)

type Registry

type Registry interface {
	Register(actor Actor) error
	Resolve(address string) (Actor, bool)
}

Registry resolves actors by normalized address.

Jump to

Keyboard shortcuts

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