exfile v0.1.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 :: %Exfile.LocalFile{io: term, meta: term, path: term}

Callbacks

call(file, list, list)

Specs

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

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