Documentation ¶ Index ¶ Constants type Config type Json func NewJson() *Json func (j *Json) Config() interface{} func (j *Json) Decode(e api.Event) (api.Event, error) func (j *Json) Init() 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() Source Files ¶ View all Source files json.go Click to show internal directories. Click to hide internal directories.