View Source Bonfire.Web.Endpoint (Bonfire v0.9.10-classic-beta.169)

Summary

Functions

Callback implementation for Plug.call/2.

Returns the child specification to start the endpoint under a supervision tree.

Returns the endpoint configuration for key

Reloads the configuration given the application environment changes.

(re)generates the reverse router (useful so it can be re-generated when extensions are enabled/disabled)

Returns the host for the given endpoint.

Callback implementation for Plug.init/1.

Generates the path information when routing to this endpoint.

Generates the script name.

Returns the address and port that the server is running on

Starts the endpoint supervision tree.

Generates a base64-encoded cryptographic hash (sha512) to a static file in priv/static. Meant to be used for Subresource Integrity with CDNs.

Returns a two item tuple with the first item being the static_path and the second item being the static_integrity.

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.

Callback implementation for Phoenix.Endpoint.unsubscribe/1.

Generates the endpoint base URL without any path information.

Functions

Link to this function

broadcast(topic, event, msg)

View Source

Callback implementation for Phoenix.Endpoint.broadcast/3.

Link to this function

broadcast!(topic, event, msg)

View Source

Callback implementation for Phoenix.Endpoint.broadcast!/3.

Link to this function

broadcast_from(from, topic, event, msg)

View Source

Callback implementation for Phoenix.Endpoint.broadcast_from/4.

Link to this function

broadcast_from!(from, topic, event, msg)

View Source

Callback implementation for Phoenix.Endpoint.broadcast_from!/4.

Callback implementation for Plug.call/2.

Returns the child specification to start the endpoint under a supervision tree.

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.

Link to this function

generate_reverse_router!(app \\ :bonfire)

View Source

(re)generates the reverse router (useful so it can be re-generated when extensions are enabled/disabled)

Link to this function

halt_live_reload(conn, _)

View Source

Returns the host for the given endpoint.

Link to this function

include_assets(conn, atom)

View Source

Callback implementation for Plug.init/1.

Link to this function

local_broadcast(topic, event, msg)

View Source

Callback implementation for Phoenix.Endpoint.local_broadcast/3.

Link to this function

local_broadcast_from(from, topic, event, msg)

View Source

Callback implementation for Phoenix.Endpoint.local_broadcast_from/4.

Callback implementation for Absinthe.Subscription.Pubsub.node_name/0.

Generates the path information when routing to this endpoint.

Link to this function

publish_mutation(topic, mutation_result, subscribed_fields)

View Source

Callback implementation for Absinthe.Subscription.Pubsub.publish_mutation/3.

Link to this function

publish_subscription(topic, data)

View Source

Callback implementation for Absinthe.Subscription.Pubsub.publish_subscription/2.

Link to this function

reload!(opts \\ ["--no-all-warnings"])

View Source

Generates the script name.

Returns the address and port that the server is running on

Starts the endpoint supervision tree.

All other options are merged into the endpoint configuration.

Generates a base64-encoded cryptographic hash (sha512) to a static file in priv/static. Meant to be used for Subresource Integrity with CDNs.

Returns a two item tuple with the first item being the static_path and the second item being the static_integrity.

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 falls back 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 it to URL helpers.

Link to this function

subscribe(topic, opts \\ [])

View Source

Callback implementation for Phoenix.Endpoint.subscribe/2.

Callback implementation for Phoenix.Endpoint.unsubscribe/1.

Generates the endpoint base URL without any path information.

It uses the configuration under :url to generate such.