tmsg

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package tmsg routes canonical messages to Kernel actions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TopicBinding

type TopicBinding struct {
	Topic string
	// contains filtered or unexported fields
}

TopicBinding routes a Kernel action from the canonical message envelope.

func Topic

func Topic(topic string) TopicBinding

func (TopicBinding) String

func (b TopicBinding) String() string

type Transport

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

Transport routes envelopes to Topic-bound actions.

func New

func New(router *message.Router) *Transport

func (*Transport) CanHandle

func (t *Transport) CanHandle(b action.Binding) bool

func (*Transport) Do

func (t *Transport) Do(ctx context.Context, _ any) (any, error)

func (*Transport) Mount

func (t *Transport) Mount(actions []action.AnyAction)

func (*Transport) Publish

func (t *Transport) Publish(ctx context.Context, env *message.Envelope) error

func (*Transport) Router

func (t *Transport) Router() *message.Router

func (*Transport) String

func (t *Transport) String() string

Jump to

Keyboard shortcuts

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