Documentation
¶
Overview ¶
Package core implements generic local message delivery and byte-keyed trees.
Index ¶
- Variables
- func Addressed(endpoint wire.Endpoint) wire.AddressedEndpoint
- func AsAddressed(tree wire.WireNode) wire.AddressedWire
- func Bind(target wire.AddressedWire, path wire.Path) wire.Wire
- func NewPair(options PairOptions) (*PairEndpoint, *PairEndpoint, error)
- func Route(n wire.DeixisNode[func(ontos.Value)], path wire.Path, message ontos.Value) bool
- func Select[T any](n wire.DeixisNode[T], path wire.Path) (wire.DeixisNode[T], bool)
- func Under(target wire.AddressedWire, prefix wire.Path) wire.AddressedWire
- type Node
- type PairEndpoint
- type PairOptions
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 NewPair ¶ added in v0.2.0
func NewPair(options PairOptions) (*PairEndpoint, *PairEndpoint, error)
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 }
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) 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)
Click to show internal directories.
Click to hide internal directories.