json

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: 1

Documentation

Overview

Package json implements JSON output formatting.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonDriver

type JsonDriver struct{}

JsonDriver formats flow messages using JSON encoding.

func (*JsonDriver) Format

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

Format encodes the input payload as JSON, preserving a Key when available.

func (*JsonDriver) Init

func (d *JsonDriver) Init() error

Init finalizes runtime configuration for the driver.

func (*JsonDriver) Prepare

func (d *JsonDriver) 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