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

10 lines
269 B
Elixir
Raw Normal View History

2021-07-12 11:29:27 +00:00
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