grafter.pipeline

FIXME: write docs

declare-pipeline

macro

(declare-pipeline sym display-name type-form metadata)(declare-pipeline sym type-form metadata)

Declare a pipeline function and expose it to other services such as the grafter leiningen plugin and grafter-server.

declare-pipeline takes a symbol identifying the function to expose, an optional human friendly title string a type-form describing the pipelines arguments and return type and a map of metadata describing each argument.

(defn my-pipeline [a] [(->Quad a a a a)])

(declare-pipeline my-pipeline “My example pipeline” [URI -> Quads] {a “Argument a”})

exported-pipelines

Map of pipelines that have been declared and exported to the pipeline runners