exfile v0.0.5 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

file :: {:tempfile, Path.t} | {:io, pid}

Callbacks

call(file, list)

Specs

call(file, [String.t, ...]) ::
  {:ok, file} |
  {:error, atom}

Processes the file, returns {:ok, result} on success or {:error, reason} on failure.