ets_browser v0.1.0 EtsBrowser.Plug View Source

A plug that can be used in your router to browse public or protected ETS tables.

Using with Plug or Phoenix

# In your Router defmodule MyApp.Router do

use Phoenix.Router # or use Plug.Router if you're not using Phoenix
if Mix.env == :dev do
  # If using Phoenix
  forward "/ets_browser", EtsBrowser.Plug
  # If using Plug.Router, make sure to add the `to`
  forward "/ets_browser", to: EtsBrowser.Plug
end

end

Now if you visit your app at /ets_browser you will see a list of all public or protected ETS tables on your current node.

Link to this section Summary

Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.

Link to this section Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.