View Source YaBTTWeb.Controllers.Info (YaBTT v0.1.5)
A controller (Plug.Builder) for the tracker statistics page.
This controller is responsible to show the current state of the tracker.
Noice
This controller requires the authentication. See:
YaBTTWeb.Auth.
We query the state of the tracker by calling YaBTT.Query.State.query/0.
Then we render the result to a HTML page using EEx. Finally, we send the
response to the client (Browser).
You can check YaBTT.Query.State.query/0 for more information about what
information we statistics.
Link to this section Summary
Functions
Callback implementation for Plug.call/2.
A Plug to handles the request.
Callback implementation for Plug.init/1.
Link to this section Functions
Callback implementation for Plug.call/2.
@spec info(Plug.Conn.t(), Plug.opts()) :: Plug.Conn.t()
A Plug to handles the request.
Query, and render the result to a HTML page.
Finally, send the response to the client.
Callback implementation for Plug.init/1.