kiola / lib /srh.ex
Scott Hiett
Token resolver now a GenServer with client methods that directly hit ETS
89df778
raw
history blame
429 Bytes
defmodule Srh do
use Application
def start(_type, _args) do
children = [
Srh.Auth.TokenResolver,
{GenRegistry, worker_module: Srh.Redis.Client},
{
Plug.Cowboy,
scheme: :http,
plug: Srh.Http.BaseRouter,
options: [
port: 8080
]
}
]
opts = [strategy: :one_for_one, name: Srh.Supervisor]
Supervisor.start_link(children, opts)
end
end