Current section
Files
Jump to
Current section
Files
lib/xgps.ex
defmodule XGPS do
use Application
def start(_type, _args) do
children = [
%{
id: Ports,
start: { XGPS.Ports, :start_link, []},
type: :supervisor
},
%{
id: Broadcaster,
start: { XGPS.Broadcaster, :start_link, []},
type: :worker
},
]
opts = [strategy: :one_for_one, name: XGPS.Supervisor]
Supervisor.start_link(children, opts)
end
end