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.
Click to show internal directories.
Click to hide internal directories.