protobuf

package
v0.0.0-...-98ba599 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultParser = &Parser{}

Functions

func Parse

func Parse(r io.Reader) (*types.WorkflowSpec, error)

Types

type Parser

type Parser struct {
}

Parser implements the parse.Parser interface to parse workflow specs from a protobuf encoding.

func (*Parser) Parse

func (p *Parser) Parse(r io.Reader) (*types.WorkflowSpec, error)

Parse parses a workflow spec from the provided reader, assuming that the protobuf encoding is used.

It will return an error if (1) it fails to read the reader, or if (2) it fails to unmarshall the bytes into the WorkflowSpec.

Jump to

Keyboard shortcuts

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