parser

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultGraphqlEndpoint = "https://api.cirrus-ci.com/graphql"
)

Variables

View Source
var (
	ErrInternal  = errors.New("internal error")
	ErrTransport = errors.New("transport error")
)

Functions

This section is empty.

Types

type Parser

type Parser struct {
	// GraphqlEndpoint specifies an alternative GraphQL endpoint to use. If empty, DefaultGraphqlEndpoint is used.
	GraphqlEndpoint string
}

func (*Parser) Parse

func (p *Parser) Parse(config string) (*Result, error)

func (*Parser) ParseFromFile

func (p *Parser) ParseFromFile(path string) (*Result, error)

type Result

type Result struct {
	Errors []string
}

Jump to

Keyboard shortcuts

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