Page MenuHomePhabricator

icecast_agent.ex
No OneTemporary

icecast_agent.ex

defmodule LSG.IcecastAgent do
use Agent
def start_link() do
Agent.start_link(fn -> nil end, name: __MODULE__)
end
def update(stats) do
Agent.update(__MODULE__, fn(_old) -> stats end)
end
def get do
Agent.get(__MODULE__, fn(stats) -> stats end)
end
end

File Metadata

Mime Type
text/x-ruby
Expires
Sat, Feb 28, 10:54 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
87264
Default Alt Text
icecast_agent.ex (283 B)

Event Timeline