exsozu v0.3.0 ExSozu.Command View Source

Provides a set of helpers to prepare commands for Sōzu.

If you can’t find a command in this list, you can create one like this:

%ExSozu.Command{
  type: <type (must be an atom)>,
  proxy_id: <the proxy id, if any>,
  data: <whatever needs to be send>
}

You can then send it using ExSozu.command/1.

Checkout the Sōzu documentation for more info.

Link to this section Summary

Link to this section Types

Link to this type options() View Source
options() :: [{:proxy_id, nil | integer()}]
Link to this type t() View Source
t() :: %ExSozu.Command{data: nil | map(), id: String.t(), proxy_id: nil | integer(), type: atom(), version: 0}

Link to this section Functions

Link to this function add_certificate(cert, cert_chain, key, opts \\ []) View Source
add_certificate(cert :: String.t(), cert_chain :: [String.t()], key :: String.t(), options()) :: t()
Link to this function add_http_front(app_id, host, path_begin, opts \\ []) View Source
add_http_front(app_id :: String.t(), host :: String.t(), path_begin :: String.t(), options()) :: t()
Link to this function add_https_front(app_id, host, path_begin, fingerprint, opts \\ []) View Source
add_https_front(app_id :: String.t(), host :: String.t(), path_begin :: String.t(), fingerprint :: String.t(), options()) :: t()
Link to this function add_instance(app_id, instance_id, ip_addr, port, opts \\ []) View Source
add_instance(app_id :: String.t(), instance_id :: String.t(), ip_addr :: String.t(), port :: integer(), options()) :: t()
Link to this function dump_state(opts \\ []) View Source
dump_state(options()) :: t()
Link to this function hard_stop(opts \\ []) View Source
hard_stop(options()) :: t()
Link to this function list_workers(opts \\ []) View Source
list_workers(options()) :: t()
Link to this function load_state(path, opts \\ []) View Source
load_state(path :: String.t(), options()) :: t()
Link to this function remove_certificate(data, opts \\ []) View Source
remove_certificate(data :: String.t(), options()) :: t()
Link to this function remove_http_front(app_id, host, path_begin, opts \\ []) View Source
remove_http_front(app_id :: String.t(), host :: String.t(), path_begin :: String.t(), options()) :: t()
Link to this function remove_https_front(app_id, host, path_begin, fingerprint, opts \\ []) View Source
remove_https_front(app_id :: String.t(), host :: String.t(), path_begin :: String.t(), fingerprint :: String.t(), options()) :: t()
Link to this function remove_instance(app_id, instance_id, ip_addr, port, opts \\ []) View Source
remove_instance(app_id :: String.t(), instance_id :: String.t(), ip_addr :: String.t(), port :: integer(), options()) :: t()
Link to this function save_state(path, opts \\ []) View Source
save_state(path :: String.t(), options()) :: t()
Link to this function soft_stop(opts \\ []) View Source
soft_stop(options()) :: t()
Link to this function status(opts \\ []) View Source
status(options()) :: t()
Link to this function upgrade_master(opts \\ []) View Source
upgrade_master(options()) :: t()