Packages

This module is designed to facilitate the Device structure (Plug.Conn.assign) and easy connection to other projects.

Current section

Files

Jump to
ds lib application.ex
Raw

lib/application.ex

defmodule DS.Application do
@moduledoc false
use Application
def start(_type, _args) do
:ets.new(Application.get_env(:ds, :table_name), [
:named_table,
:set,
:public,
read_concurrency: true
])
children = []
opts = [strategy: :one_for_one, name: DS.Supervisor]
Supervisor.start_link(children, opts)
end
end