View Source Skitter.BIO (Skitter v0.7.1)

Shorthands for using built-in operations.

This module defines various macros which can be used to use the various built-in operations in skitter workflows.

Summary

Functions

Link to this macro

filter(func, opts \\ [])

View Source (macro)

Skitter.BIO.Filter node.

Inserts a Skitter.BIO.Filter Skitter.DSL.Workflow.node/2 in the workflow. The argument passed to this macro is passed as an argument to Skitter.BIO.Filter, other options (as:, with:) should be passed as a second, optional argument.

Link to this macro

flat_map(func, opts \\ [])

View Source (macro)

Skitter.BIO.FlatMap node.

Like map/2, but with Skitter.BIO.FlatMap.

Link to this macro

keyed_reduce(key_fn, red_fn, initial, opts \\ [])

View Source (macro)

Skitter.BIO.KeyedReduce node.

Inserts a Skitter.BIO.KeyedReduce Skitter.DSL.Workflow.node/2 in the workflow. The key_fn, red_fn and initial arguments passed to this macro are passed as arguments to Skitter.BIO.KeyedReduce. Other options (as:, with:) can be passed as a fourth argument.

Link to this macro

map(func, opts \\ [])

View Source (macro)

Skitter.BIO.Map node.

Inserts a Skitter.BIO.Map Skitter.DSL.Workflow.node/2 in the workflow. The argument passed to this macro is passed as an argument to Skitter.BIO.Map, other options (as:, with:) should be passed as a second, optional argument.

Link to this macro

msg_source(opts \\ [])

View Source (macro)

Message source node.

Inserts a Skitter.BIO.MessageSource node in the workflow. Any options are passed to the workflow.

Link to this macro

print(label \\ nil, opts \\ [])

View Source (macro)

Skitter.BIO.Print node.

Insert a Skitter.BIO.Print node in the workflow. The argument passed to this macro is passed as the print label described in the operation documentation. Workflow options (as, with) can be passed as the optional second argument.

Link to this macro

send_sink(pid \\ quote do self() end, opts \\ [])

View Source (macro)

Skitter.BIO.Send node.

Insert a Skitter.BIO.Send sink in the workflow. The argument passed to this macro is passed as the pid described in the operation documentation. Workflow options (as, with) can be passed as the optional second argument. When no argument is provided, self() will be used.

Link to this macro

stream_source(enum, opts \\ [])

View Source (macro)

Stream source node.

Inserts a Skitter.BIO.StreamSource node in the workflow. The provided enum is passed as an argument to Skitter.BIO.StreamSource. opts are passed as options to the workflow.

Link to this macro

tcp_source(address, port, opts \\ [])

View Source (macro)

Tcp source node.

Inserts a Skitter.BIO.TCPSource node in the workflow. The address and ports passed to this argument will be passed as arguments to Skitter.BIO.TCPSource. Provided options are passed to the workflow.