As middleware structure for organizing services ( a plug for services)
If available in Hex, the package can be installed as:
-
Add tube to your list of dependencies in
mix.exs
:def deps do [{:tube, "~> 0.0.1"}] end
-
Ensure tube is started before your application:
def application do [applications: [:tube]] end