View Source Strom.Renamer (strom v0.8.3)

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

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

Functions

@spec call(Strom.flow(), t()) :: Strom.flow()
@spec new(map()) :: t()
@spec start(t()) :: t()
@spec stop(t()) :: :ok