message

package
v0.43.1-access-memory-... Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: AGPL-3.0 Imports: 1 Imported by: 1

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

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