Documentation ¶
Index ¶
- func Build(opId uuid.UUID, gens core.Generics, props core.Properties, st storage.Storage) (*core.Operator, error)
- func BuildAndCompile(opId uuid.UUID, gens core.Generics, props core.Properties, st storage.Storage) (*core.Operator, error)
- func BuildOperator(bundle *core.SlangBundle) (*core.Operator, error)
- func Compile(op *core.Operator) (*core.Operator, error)
- func CreateAndConnectOperator(insName string, def core.Blueprint, ordered bool) (*core.Operator, error)
- func CreateBundle(bp *core.Blueprint, st *storage.Storage) (*core.SlangBundle, error)
- func JsonRdbuf(rd *bufio.Reader) (interface{}, error)
- func JsonWrbuf(wr *bufio.Writer, j interface{}) error
- func Rdbuf(rd *bufio.Reader) (string, error)
- func Wrbuf(wr *bufio.Writer, msg string) error
- type Commander
- type Commands
- type PortConnHandler
- type TestBench
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAndCompile ¶ added in v0.1.17
func BuildOperator ¶ added in v0.1.17
func BuildOperator(bundle *core.SlangBundle) (*core.Operator, error)
todo should be SlangBundle method
func CreateBundle ¶ added in v0.1.17
Types ¶
type Commander ¶ added in v0.1.17
func NewCommander ¶ added in v0.1.17
type PortConnHandler ¶ added in v0.1.17
type PortConnHandler interface { ListPortRefs() []string ConnectTo(p string, hndl func(c net.Conn) bool) error }
func NewPortConnHandler ¶ added in v0.1.17
func NewPortConnHandler(pmap map[string]string) PortConnHandler
type TestBench ¶ added in v0.1.17
type TestBench struct {
// contains filtered or unexported fields
}
func NewTestBench ¶ added in v0.1.17
func (TestBench) Run ¶ added in v0.1.17
TestOperator reads a file with test data and its corresponding operator and performs the tests. It returns the number of failed and succeeded tests and and error in case something went wrong. Test failures do not lead to an error. Test failures are printed to the writer.
Click to show internal directories.
Click to hide internal directories.