json

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONFormatter

type JSONFormatter struct {
	Mode JSONMode
}

func NewJSONFormatter

func NewJSONFormatter() *JSONFormatter

func (*JSONFormatter) Format

func (f *JSONFormatter) Format(msg hermod.Message) ([]byte, error)

func (*JSONFormatter) SetMode

func (f *JSONFormatter) SetMode(mode JSONMode)

type JSONMode

type JSONMode string
const (
	ModeFull    JSONMode = "full"
	ModePayload JSONMode = "payload"
)

Jump to

Keyboard shortcuts

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