msgpackencoder

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package msgpack provides a MessagePack encoder for Conduit messages. MessagePack is a binary format that is faster and more compact than JSON, making it ideal for high-performance messaging systems.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

type Encoder struct{}

Encoder implements conduit.Encoder using MessagePack binary serialization. It provides fast, compact encoding suitable for high-throughput systems.

func New

func New() *Encoder

New creates a new MessagePack encoder.

func (*Encoder) Decode

func (d *Encoder) Decode(data []byte, v any) error

Decode deserializes MessagePack bytes into v.

func (*Encoder) Encode

func (e *Encoder) Encode(v any) ([]byte, error)

Encode serializes v to MessagePack bytes.

Jump to

Keyboard shortcuts

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