envelope

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(r io.Reader) (*pb.Envelope, error)

Read reads a length-prefixed Envelope from the reader.

func ReadRaw

func ReadRaw(r io.Reader) (*pb.Envelope, []byte, error)

ReadRaw reads a length-prefixed Envelope. If the envelope contains a RawHeader, it also reads the subsequent raw bytes from the reader. Returns (envelope, rawBytes, error). rawBytes is nil for non-RawHeader messages.

func Write

func Write(w io.Writer, env *pb.Envelope) error

Write serializes an Envelope and writes it with a 4-byte big-endian length prefix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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