Current section

Files

Jump to
upstream lib upstream application.ex
Raw

lib/upstream/application.ex

defmodule Upstream.Application do
@moduledoc """
Supervisor for the Upstream App
"""
use Application
def start(_type, _args) do
children = [
Upstream.B2.Account,
Upstream.Uploader,
Upstream.Store,
Upstream.Scheduler
]
opts = [strategy: :one_for_one, name: Upstream.Supervisor]
Supervisor.start_link(children, opts)
end
end