wire

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package wire provides frame wire formats. FrameEnvelope is generated from wire_frames.proto (type + payload). Marshal/Unmarshal use standard protobuf wire encoding.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FrameEnvelope

type FrameEnvelope struct {
	Type    string
	Payload []byte
}

FrameEnvelope wraps a frame with type discriminator and payload (JSON or binary). Matches wire_frames.proto message FrameEnvelope.

func (*FrameEnvelope) Marshal

func (m *FrameEnvelope) Marshal() ([]byte, error)

Marshal encodes m to protobuf wire format (field 1: type, field 2: payload).

func (*FrameEnvelope) Unmarshal

func (m *FrameEnvelope) Unmarshal(b []byte) error

Unmarshal decodes protobuf wire bytes into m.

Jump to

Keyboard shortcuts

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