Packages

Elixir Pods is a lightweight protocol on top of stdout and stderr.

Current section

Files

Jump to
pods lib behaviours decoder.ex
Raw

lib/behaviours/decoder.ex

defmodule Pods.Decoder do
@moduledoc """
Decodes messages from the pod process
"""
@callback decode!(message :: term(), encoding :: String.t()) :: term()
@callback decode(message :: term(), encoding :: String.t()) :: {:ok | :error, term()}
defmacro __using__(_opts) do
quote do
@behaviour Pods.Decoder
end
end
end