Initial Commit

This commit is contained in:
2024-12-24 17:45:52 +01:00
commit c30845575a
42 changed files with 870 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
defmodule KVServer do
@moduledoc """
Documentation for `KVServer`.
"""
@doc """
Hello world.
## Examples
iex> KVServer.hello()
:world
"""
def hello do
:world
end
end

View File

@@ -0,0 +1,20 @@
defmodule KVServer.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
# Starts a worker by calling: KVServer.Worker.start_link(arg)
# {KVServer.Worker, arg}
]
# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: KVServer.Supervisor]
Supervisor.start_link(children, opts)
end
end