Current section
Files
Jump to
Current section
Files
lib/trackr/core/api/api.ex
defmodule Trackr.Core.API do
def create(destinations) do
GenServer.start(Trackr.Core.Server, [destinations], [name: :trackr])
end
def track(destination, metadata, headers \\ []) do
GenServer.cast(:trackr, {:track, {destination, metadata, headers}})
end
end