aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2025-05-28 22:03:05 +0100
committerGravatar Joe Banks <[email protected]>2025-05-28 22:03:05 +0100
commit3ad8be69ce21b0e03046e31eca348b112e377e2e (patch)
tree12ca5a665f191bf849adb8531fcd4ce24cce44fa /lib
parentAdd PSL files to gitignore (diff)
Update project as application
Diffstat (limited to 'lib')
-rw-r--r--lib/lithium.ex21
1 files changed, 10 insertions, 11 deletions
diff --git a/lib/lithium.ex b/lib/lithium.ex
index f8bc2d2..b42c45a 100644
--- a/lib/lithium.ex
+++ b/lib/lithium.ex
@@ -1,18 +1,17 @@
defmodule Lithium do
+ use Application
+
@moduledoc """
- Documentation for `Lithium`.
+ Lithium is a mail authentication daemon.
"""
- @doc """
- Hello world.
-
- ## Examples
+ @impl true
+ def start(_start_type, _start_args) do
+ children = [
+ {Lithium.Util.PublicSuffix, []}
+ ]
- iex> Lithium.hello()
- :world
-
- """
- def hello do
- :world
+ opts = [strategy: :one_for_one, name: Lithium.Supervisor]
+ Supervisor.start_link(children, opts)
end
end