Strom.Renamer (strom v0.9.3)

View Source

Renames streams in flow.

## Example
iex> alias Strom.Renamer
iex> flow = %{s1: [1], s2: [2]}
iex> renamer = %{s1: :foo1, s2: :foo2} |> Renamer.new() |> Renamer.start()
iex> Renamer.call(flow, renamer)
%{foo1: [1], foo2: [2]}

Summary

Types

t()

@type t() :: %Strom.Renamer{names: term()}

Functions

call(flow, renamer)

@spec call(Strom.flow(), t()) :: Strom.flow()

new(names)

@spec new(map()) :: t()

start(renamer)

@spec start(t()) :: t()

stop(renamer)

@spec stop(t()) :: :ok