ex_data.gov.ua/lib/ex_data_gov_u_a/decoders/base.ex

10 lines
269 B
Elixir

defmodule ExDataGovUA.Decoders.Base do
@type data :: map()
@type status :: Atom.t()
@type async_response :: Stream.t()
@type sync_response :: {status, data}
@type body :: String.t() | Stream.t()
@callback decode(body) :: async_response | sync_response
end