json

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Type = "json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Pretty      bool `yaml:"pretty,omitempty" default:"false"`
	BeatsFormat bool `yaml:"beatsFormat" default:"false"`
}

type Json

type Json struct {
	// contains filtered or unexported fields
}

func NewJson

func NewJson() *Json

func (*Json) Config

func (j *Json) Config() interface{}

func (*Json) Encode

func (j *Json) Encode(e api.Event) ([]byte, error)

func (*Json) Init

func (j *Json) Init(config *codec.Config)

Jump to

Keyboard shortcuts

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