View Source HLS.Storage protocol (HTTP Live Streaming (HLS) library v2.0.0)

Summary

Types

t()

All the types that implement this protocol.

Types

@type option() :: {:max_retries, non_neg_integer()}
@type options() :: [option()]
@type t() :: term()

All the types that implement this protocol.

Functions

Link to this function

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

View Source
@spec delete(t(), URI.t(), options()) :: :ok | {:error, any()}
Link to this function

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

View Source
@spec get(t(), URI.t(), options()) ::
  {:ok, binary()} | {:error, :not_found} | {:error, any()}
Link to this function

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

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