message

package
v0.47.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: AGPL-3.0 Imports: 1 Imported by: 2 modules, 1 package

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestMessage

type TestMessage flow.TestMessage

TestMessage is the untrusted network-level representation of a test message.

This type exists purely for exercising the network layer in tests and carries no guarantees about structural validity. It implements messages.UntrustedMessage interface so it can be transmitted and decoded like any other message type.

Use ToInternal to convert this to the internal flow.TestMessage before consuming it inside the node.

func (*TestMessage) ToInternal added in v0.43.2

func (t *TestMessage) ToInternal() (any, error)

ToInternal converts the untrusted TestMessage into its trusted internal representation.

Since TestMessage is only used for testing, the conversion is effectively a passthrough that wraps the network-level data in a flow.TestMessage. In production message types, this method would enforce structural validity through flow constructors.

Jump to

Keyboard shortcuts

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