Documentation ¶
Index ¶
Constants ¶
const ( DirOut = "out" DirIn = "in" )
const (
MaxCodeLen = 128 // 128 chars is a conservative upper limit on command code len (e.g. start)
)
Variables ¶
var ( ErrTooLong = errors.New("id too long (too many slashes)") ErrTooShort = errors.New("id must have pipeline") )
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Exit ¶
type Exit struct {
When string
}
func (Exit) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Exit) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Exit) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Exit) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Ident ¶
type Ident struct {
Pipeline, Node, Port string // any of these values can be empty
}
Ident is an identifier in hosercmd. An identifier can have three different scopes: pipeline: /pipelineID process/var: /pipelineID/varID OR /pipelineID/processID port: /pipelineID/processID[portID]
type Pipe ¶
type Pipe struct {
Src, Dst string
}
func (Pipe) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Pipe) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Pipe) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Pipe) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Pipeline ¶
type Pipeline struct {
Id string
}
func (Pipeline) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Pipeline) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Pipeline) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Pipeline) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Set ¶
type Set struct { Id string Read, Write string // URLs to read and write data to. Read creates a source, Write creates a sink. Text string // A fixed value for sources }
func (Set) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Set) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Set) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Set) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Start ¶
func (Start) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Start) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Start) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Start) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface