core

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package core implements generic local message delivery and byte-keyed trees.

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingPath = errors.New("wire tree path is absent")

Functions

func Addressed added in v0.6.0

func Addressed(endpoint wire.Endpoint) wire.AddressedEndpoint

Addressed is an inert facade over the same endpoint and its receive ownership.

func AsAddressed

func AsAddressed(tree wire.WireNode) wire.AddressedWire

func Bind added in v0.3.0

func Bind(target wire.AddressedWire, path wire.Path) wire.Wire

func NewPair added in v0.2.0

func NewPair(options PairOptions) (*PairEndpoint, *PairEndpoint, error)

func Route added in v0.5.0

func Route(n wire.DeixisNode[func(ontos.Value)], path wire.Path, message ontos.Value) bool

func Select

func Select[T any](n wire.DeixisNode[T], path wire.Path) (wire.DeixisNode[T], bool)

func Under added in v0.6.0

func Under(target wire.AddressedWire, prefix wire.Path) wire.AddressedWire

Types

type Node added in v0.5.0

type Node[T any] struct {
	// contains filtered or unexported fields
}

func Compose

func Compose[T any](own T, children []wire.Child[T]) (*Node[T], error)

func (*Node[T]) At added in v0.5.0

func (n *Node[T]) At(path wire.Path) (wire.DeixisNode[T], bool)

func (*Node[T]) Children added in v0.5.0

func (n *Node[T]) Children() []wire.Child[T]

func (*Node[T]) Decompose added in v0.5.0

func (n *Node[T]) Decompose() wire.Parts[T]

func (*Node[T]) Own added in v0.5.0

func (n *Node[T]) Own() T

type PairEndpoint added in v0.5.0

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

func (*PairEndpoint) Close added in v0.5.0

func (e *PairEndpoint) Close() error

func (*PairEndpoint) Closed added in v0.5.0

func (e *PairEndpoint) Closed() <-chan struct{}

func (*PairEndpoint) Receive added in v0.5.0

func (e *PairEndpoint) Receive(handler func(ontos.Value)) (func(), error)

func (*PairEndpoint) Send added in v0.5.0

func (e *PairEndpoint) Send(message ontos.Value) error

func (*PairEndpoint) Termination added in v0.5.0

func (e *PairEndpoint) Termination() wire.Termination

type PairOptions added in v0.2.0

type PairOptions struct{ MaxMessageBytes, MaxQueuedBytes, MaxQueuedMessages int }

func NormalizeOptions added in v0.5.0

func NormalizeOptions(o PairOptions) (PairOptions, error)

Jump to

Keyboard shortcuts

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