PlugImageProcessing.Source protocol (plug_image_processing v0.9.1)

View Source

Summary

Types

t()

All the types that implement this protocol.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

cast(source, params)

@spec cast(
  struct(),
  map()
) :: struct() | boolean()

get_image(source, operation_name, config)

@spec get_image(struct(), String.t(), PlugImageProcessing.Config.t()) ::
  {:ok, PlugImageProcessing.image(), String.t() | nil, String.t()}
  | {:error, atom()}
  | {:redirect, String.t()}