Help us shape the future of Go! Take the 2026 Go Developer Survey

parser

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: Apache-2.0 Imports: 4 Imported by: 2

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