lang

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrTypeUniverse = 1 << iota
	ErrTypeAbort
	ErrTypeWarning
)

Variables

This section is empty.

Functions

func QueryNode

func QueryNode[N any](c vyze.Client, p Pipe, tp system.EndpointType) vyze.Q[N]

Types

type Library

type Library struct {
	Pipes     map[string]*Pipe
	Universes map[string]*system.Universe
	// contains filtered or unexported fields
}

func NewLibrary

func NewLibrary(univ *system.Universe) *Library

func (*Library) Parse

func (l *Library) Parse(source string) []ParseError

func (*Library) ParsePipe

func (l *Library) ParsePipe(source string) (*Pipe, []ParseError)

type ParseError added in v0.0.11

type ParseError struct {
	Err    string `json:"error"`
	Path   string `json:"path"`
	Line   int    `json:"line"`
	Column int    `json:"column"`
}

func (ParseError) String added in v0.0.11

func (pe ParseError) String() string

type Pipe

type Pipe struct {
	Node  *system.Node              `json:"node"`
	Model system.UniverseObjectInfo `json:"model"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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