parser

package
v0.1.24 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONEventParser

type JSONEventParser struct {
}

JSONEventParser implements events.StreamParser assuming JSON input.

func (*JSONEventParser) Parse

func (p *JSONEventParser) Parse(input io.Reader) ([]events.CloudEvent, error)

Parse takes io.Reader, and returns slice of CloudEvent. input can be a JSON list, single object, or list of JSON objects separated by new line characters

Jump to

Keyboard shortcuts

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