binary

package
v2.2.6 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package binary implements binary output formatting using encoding.BinaryMarshaler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryDriver

type BinaryDriver struct{}

BinaryDriver formats flow messages via MarshalBinary.

func (*BinaryDriver) Format

func (d *BinaryDriver) Format(data interface{}) ([]byte, []byte, error)

Format marshals the payload via encoding.BinaryMarshaler, preserving a Key when available.

func (*BinaryDriver) Init

func (d *BinaryDriver) Init() error

Init finalizes runtime configuration for the driver.

func (*BinaryDriver) Prepare

func (d *BinaryDriver) Prepare() error

Prepare performs any one-time setup for the driver.

Jump to

Keyboard shortcuts

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