CMDC.Backend.Results.FileDownloadResponse (cmdc v0.5.1)

Copy Markdown View Source

backend.download_files/1 单文件结果。

Summary

Types

t()

@type t() :: %CMDC.Backend.Results.FileDownloadResponse{
  content: binary() | nil,
  error: nil | atom() | String.t(),
  path: String.t()
}

Functions

error(path, reason)

@spec error(String.t(), atom() | String.t()) :: t()

ok(path, content)

@spec ok(String.t(), binary()) :: t()