exfile v0.0.2 Exfile.Processor behaviour
A behaviour defining the API a Processor should adhere to.
Summary
Callbacks
Processes the file, returns {:ok, result} on success or {:error, reason} on failure
Types
processed_result :: {:tempfile, Path.t} | {:io, pid}
Callbacks
Specs
call(file, [String.t, ...]) ::
{:ok, processed_result} |
{:error, atom}
Processes the file, returns {:ok, result} on success or {:error, reason} on failure.