ExDebugToolbar v0.1.1 ExDebugToolbar.Endpoint View Source

Link to this section Summary

Functions

Returns all sockets configured in this endpoint

Callback implementation for Plug.call/2

Returns the endpoint configuration for key

Reloads the configuration given the application environment changes

Callback implementation for Plug.init/1

Generates the path information when routing to this endpoint

Starts the endpoint supervision tree

Generates a route to a static file in priv/static

Generates the static URL without any path information

Generates the endpoint base URL but as a URI struct

Generates the endpoint base URL without any path information

Link to this section Functions

Returns all sockets configured in this endpoint.

Link to this function broadcast(topic, event, msg) View Source
Link to this function broadcast!(topic, event, msg) View Source
Link to this function broadcast_from(from, topic, event, msg) View Source
Link to this function broadcast_from!(from, topic, event, msg) View Source

Callback implementation for Plug.call/2.

Link to this function config(key, default \\ nil) View Source

Returns the endpoint configuration for key

Returns default if the key does not exist.

Link to this function config_change(changed, removed) View Source

Reloads the configuration given the application environment changes.

Callback implementation for Plug.init/1.

Link to this macro instrument(event, runtime \\ Macro.escape(%{}), fun) View Source (macro)

Instruments the given function.

event is the event identifier (usually an atom) that specifies which instrumenting function to call in the instrumenter modules. runtime is metadata to be associated with the event at runtime (e.g., the query being issued if the event to instrument is a DB query).

Examples

instrument :render_view, %{view: "index.html"}, fn ->
  render conn, "index.html"
end

Generates the path information when routing to this endpoint.

Starts the endpoint supervision tree.

Generates a route to a static file in priv/static.

Generates the static URL without any path information.

It uses the configuration under :static_url to generate such. It fallsback to :url if :static_url is not set.

Generates the endpoint base URL but as a URI struct.

It uses the configuration under :url to generate such. Useful for manipulating the url data and passing to URL helpers.

Link to this function subscribe(pid, topic, opts) View Source

Generates the endpoint base URL without any path information.

It uses the configuration under :url to generate such.