HLS.Storage protocol (HTTP Live Streaming (HLS) library v2.4.0)

View Source

Summary

Types

t()

All the types that implement this protocol.

Types

option()

@type option() :: {:max_retries, non_neg_integer()}

options()

@type options() :: [option()]

t()

@type t() :: term()

All the types that implement this protocol.

Functions

delete(storage, uri, opts \\ [])

@spec delete(t(), URI.t(), options()) :: :ok | {:error, any()}

get(storage, uri, opts \\ [])

@spec get(t(), URI.t(), options()) ::
  {:ok, binary()} | {:error, :not_found} | {:error, any()}

put(storage, uri, binary, opts \\ [])

@spec put(t(), URI.t(), binary(), options()) :: :ok | {:error, any()}