Current section

Files

Jump to
wechat_work lib wechat_work application.ex
Raw

lib/wechat_work/application.ex

defmodule WechatWork.Application do
@moduledoc false
use Application
def start(_type, _args) do
children = [
{WechatWork.TokenServer, []}
]
opts = [strategy: :one_for_one, name: WechatWork.Supervisor]
Supervisor.start_link(children, opts)
end
end