summaryrefslogtreecommitdiff
path: root/lib/irc/application.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irc/application.ex')
-rw-r--r--lib/irc/application.ex20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/irc/application.ex b/lib/irc/application.ex
new file mode 100644
index 0000000..82fc053
--- /dev/null
+++ b/lib/irc/application.ex
@@ -0,0 +1,20 @@
+defmodule Irc.Application do
+ # See https://hexdocs.pm/elixir/Application.html
+ # for more information on OTP Applications
+ @moduledoc false
+
+ use Application
+
+ def start(_type, _args) do
+ # List all child processes to be supervised
+ children = [
+ # Starts a worker by calling: Irc.Worker.start_link(arg)
+ # {Irc.Worker, arg}
+ ]
+
+ # See https://hexdocs.pm/elixir/Supervisor.html
+ # for other strategies and supported options
+ opts = [strategy: :one_for_one, name: Irc.Supervisor]
+ Supervisor.start_link(children, opts)
+ end
+end