Upstream v2.0.3 Upstream.Worker.LargeFile.Status View Source

used to track the status of the upload process

Link to this section Summary

Link to this section Types

Link to this type t() View Source
t() :: %Upstream.Worker.LargeFile.Status{progress: map(), uploaded: List.t()}

Link to this section Functions

Link to this function add_bytes_out(bytes, pid, key \\ 0) View Source
add_bytes_out(
  any(),
  atom() | pid() | {atom(), any()} | {:via, atom(), any()},
  any()
) :: any()
Link to this function add_uploaded(arg, pid) View Source
add_uploaded(
  {any(), any()},
  atom() | pid() | {atom(), any()} | {:via, atom(), any()}
) :: {integer(), binary()}
Link to this function bytes_transferred(pid) View Source
bytes_transferred(atom() | pid() | {atom(), any()} | {:via, atom(), any()}) ::
  integer()
Link to this function get_uploaded_sha1(pid) View Source
get_uploaded_sha1(atom() | pid() | {atom(), any()} | {:via, atom(), any()}) ::
  any()
Link to this function progress_count(pid) View Source
progress_count(atom() | pid() | {atom(), any()} | {:via, atom(), any()}) ::
  integer()
Link to this function start_link() View Source
start_link() :: {:error, any()} | {:ok, pid()}
Link to this function stop(pid) View Source
stop(atom() | pid() | {atom(), any()} | {:via, atom(), any()}) :: :ok
Link to this function thread_count(pid) View Source
thread_count(atom() | pid() | {atom(), any()} | {:via, atom(), any()}) ::
  integer()
Link to this function upload_complete?(pid) View Source
upload_complete?(atom() | pid() | {atom(), any()} | {:via, atom(), any()}) ::
  boolean()
Link to this function uploaded_count(pid) View Source
uploaded_count(atom() | pid() | {atom(), any()} | {:via, atom(), any()}) ::
  integer()