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: 5 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 {
	BodyFields string `yaml:"bodyFields,omitempty" validate:"required"` // use the fields as `Body`
	Prune      *bool  `yaml:"prune,omitempty"`                          // we drop all the fields except `Body` in default
}

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) Decode

func (j *Json) Decode(e api.Event) (api.Event, error)

func (*Json) Init

func (j *Json) Init()

Jump to

Keyboard shortcuts

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