View Source Hikvision.Operation (HikvisionClient v0.1.0)

Holds data necessary for an operation

Link to this section Summary

Functions

Create a new operation

Performs an operation on a Hikvision device.

Link to this section Types

@type method() :: :get | :put | :post | :delete | :head
@type t() :: %Hikvision.Operation{
  body: iodata() | nil,
  download_to: Path.t(),
  headers: list(),
  http_method: method(),
  params: map(),
  parser: (term() -> term()),
  path: binary()
}

Link to this section Functions

@spec new(binary(), Keyword.t()) :: t()

Create a new operation

@spec perform(t(), Hikvision.Config.t()) :: Hikvision.success() | Hikvision.error()

Performs an operation on a Hikvision device.