wire

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodePayload

func DecodePayload(payload json.RawMessage, target any) error

DecodePayload decodes the envelope payload into the target type

Types

type Envelope

type Envelope = wire.Envelope

Envelope is a standard message envelope for request/reply and broadcast messaging

func NewEnvelope

func NewEnvelope(msgType string, payload any) (Envelope, error)

NewEnvelope creates a new envelope with the given type and payload

Jump to

Keyboard shortcuts

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