View Source WebInterface.Commands (Market Manager v2.1.5)

Contains information about the commands the web_interface understands. Works as a bridge between the web interface and the Manager application, which does the real work.

Link to this section Summary

Link to this section Types

Specs

activate_request() :: %{
  command: :activate,
  strategy: Manager.Type.strategy(),
  syndicates: [Manager.Type.syndicate()]
}
Link to this type

authenticate_request()

View Source

Specs

authenticate_request() :: %{
  command: :authenticate,
  cookie: String.t(),
  token: String.t()
}

Specs

command() :: %{name: String.t(), description: String.t(), id: command_id()}

Specs

command_id() :: :activate | :deactivate | :authenticate

Specs

deactivate_request() :: %{
  command: :deactivate,
  syndicates: [Manager.Type.syndicate()]
}

Specs

dependencies() :: %{manager: module()}

Specs

Link to this section Functions

Link to this function

execute(command, deps \\ %{manager: Manager})

View Source

Specs

execute(request(), dependencies()) :: any()

Specs

get_command(atom()) :: command() | nil

Specs

list_commands() :: [command()]