SYMBOL INDEX (112 symbols across 15 files) FILE: lib/canary.ex class Canary (line 1) | defmodule Canary FILE: lib/canary/default_handler.ex class Canary.DefaultHandler (line 1) | defmodule Canary.DefaultHandler method not_found_handler (line 23) | def not_found_handler(%Plug.Conn{} = conn) do method not_found_handler (line 29) | def not_found_handler(%Phoenix.LiveView.Socket{} = socket) do method unauthorized_handler (line 40) | def unauthorized_handler(%Plug.Conn{} = conn) do method unauthorized_handler (line 46) | def unauthorized_handler(%Phoenix.LiveView.Socket{} = socket) do FILE: lib/canary/error_handler.ex class Canary.ErrorHandler (line 1) | defmodule Canary.ErrorHandler FILE: lib/canary/plugs.ex class Canary.Plugs (line 1) | defmodule Canary.Plugs method load_resource (line 91) | def load_resource(conn, opts) do method do_load_resource (line 104) | defp do_load_resource(conn, opts) do method authorize_controller (line 165) | def authorize_controller(conn, opts) do method do_authorize_controller (line 176) | defp do_authorize_controller(conn, opts) do method authorize_resource (line 263) | def authorize_resource(conn, opts) do method do_authorize_resource (line 273) | defp do_authorize_resource(conn, opts) do method load_and_authorize_resource (line 347) | def load_and_authorize_resource(conn, opts) do method do_load_and_authorize_resource (line 357) | defp do_load_and_authorize_resource(conn, opts) do method maybe_handle_not_found (line 366) | defp maybe_handle_not_found(%{state: :sent} = conn, _opts), do: conn method maybe_handle_not_found (line 367) | defp maybe_handle_not_found(conn, opts), do: handle_not_found(conn, opts) method purge_resource_if_unauthorized (line 369) | defp purge_resource_if_unauthorized(%{assigns: %{authorized: true}} = ... method purge_resource_if_unauthorized (line 372) | defp purge_resource_if_unauthorized(%{assigns: %{authorized: false}} =... method fetch_resource (line 377) | defp fetch_resource(conn, opts) do method fetch_all (line 405) | defp fetch_all(conn, opts) do method get_action (line 424) | defp get_action(conn) do method handle_unauthorized (line 431) | defp handle_unauthorized(%{assigns: %{authorized: true}} = conn, _opts), method handle_unauthorized (line 434) | defp handle_unauthorized(%{assigns: %{authorized: false}} = conn, opts), method handle_not_found (line 437) | defp handle_not_found(conn, opts) do FILE: lib/canary/utils.ex class Canary.Utils (line 1) | defmodule Canary.Utils method get_resource_id (line 24) | def get_resource_id(%Plug.Conn{params: params}, opts) do method preload_if_needed (line 43) | def preload_if_needed(nil, _repo, _opts), do: nil method preload_if_needed (line 46) | def preload_if_needed(records, repo, opts) do method action_valid? (line 69) | def action_valid?(action, opts) do method action_exempt? (line 85) | defp action_exempt?(action, opts) do method action_included? (line 93) | defp action_included?(action, opts) do method required? (line 105) | def required?(opts) do method apply_error_handler (line 115) | def apply_error_handler(conn_or_socket, handler_key, opts) do method get_handler (line 120) | defp get_handler(handler_key, opts) do method get_resource_name (line 154) | def get_resource_name(action, opts) do method persisted? (line 169) | def persisted?(opts) do method pluralize_if_needed (line 173) | defp pluralize_if_needed(name, action, opts) do method non_id_actions (line 184) | def non_id_actions(opts) do method apply_handle_not_found? (line 197) | def apply_handle_not_found?(action, assigns, opts) do method validate_opts (line 211) | def validate_opts(opts) do method warn_deprecated_opts (line 216) | defp warn_deprecated_opts(opts) do FILE: mix.exs class Canary.Mixfile (line 1) | defmodule Canary.Mixfile method project (line 4) | def project do method elixirc_paths (line 35) | defp elixirc_paths(:test), do: ["lib", "test/support"] method elixirc_paths (line 36) | defp elixirc_paths(_), do: ["lib"] method application (line 38) | def application do method package (line 42) | defp package do method deps (line 50) | defp deps do method coverage_ignore_modules (line 65) | defp coverage_ignore_modules do FILE: test/canary/default_handler_test.exs class CustomHandlers (line 1) | defmodule CustomHandlers method not_found_handler (line 2) | def not_found_handler(conn) do method unauthorized_handler (line 7) | def unauthorized_handler(conn) do class DefaultHandlerTest (line 13) | defmodule DefaultHandlerTest FILE: test/canary/hooks_test.exs class Canary.HooksTest (line 1) | defmodule Canary.HooksTest method build_socket (line 457) | defp build_socket(action \\ :show) do method put_assigns (line 461) | defp put_assigns(socket, assigns) do FILE: test/canary/plugs_test.exs class Canary.PlugsTest (line 1) | defmodule Canary.PlugsTest class UnauthorizedHandlerConfigured (line 1390) | defmodule UnauthorizedHandlerConfigured class UnauthorizedHandlerConfiguredAndSpecified (line 1439) | defmodule UnauthorizedHandlerConfiguredAndSpecified class NotFoundHandlerConfigured (line 1466) | defmodule NotFoundHandlerConfigured class NotFoundHandlerConfiguredAndSpecified (line 1485) | defmodule NotFoundHandlerConfiguredAndSpecified class CurrentUser (line 1505) | defmodule CurrentUser class ApplicationConfig (line 1508) | defmodule ApplicationConfig class Preload (line 1578) | defmodule Preload class NonIdActions (line 1735) | defmodule NonIdActions FILE: test/canary/utils_test.exs class UtilsTest (line 1) | defmodule UtilsTest FILE: test/support/endpoint.ex class Canary.HooksHelper.Endpoint (line 1) | defmodule Canary.HooksHelper.Endpoint FILE: test/support/page_live.ex class Canary.HooksHelper.PageLive (line 1) | defmodule Canary.HooksHelper.PageLive method render (line 15) | def render(assigns) do method mount (line 21) | def mount(_params, _session, socket) do method handle_call (line 27) | def handle_call({:run, func}, _, socket), do: func.(socket) method run (line 29) | def run(lv, func) do method fetch_lifecycle (line 33) | def fetch_lifecycle(lv) do FILE: test/support/post_live.ex class Canary.HooksHelper.PostLive (line 1) | defmodule Canary.HooksHelper.PostLive method render (line 13) | def render(assigns) do method mount (line 19) | def mount(_params, _session, socket) do method handle_call (line 25) | def handle_call({:run, func}, _, socket), do: func.(socket) method run (line 27) | def run(lv, func) do method fetch_assigns (line 31) | def fetch_assigns(lv) do method fetch_socket (line 37) | def fetch_socket(lv) do FILE: test/support/router.ex class Canary.HooksHelper.Router (line 1) | defmodule Canary.HooksHelper.Router FILE: test/test_helper.exs class User (line 4) | defmodule User class Post (line 8) | defmodule Post class Repo (line 20) | defmodule Repo method get (line 21) | def get(User, 1), do: %User{} method get (line 22) | def get(User, _id), do: nil method get (line 24) | def get(Post, 1), do: %Post{id: 1} method get (line 25) | def get(Post, 2), do: %Post{id: 2, user_id: 2} method get (line 26) | def get(Post, _), do: nil method all (line 28) | def all(_), do: [%Post{id: 1}, %Post{id: 2, user_id: 2}] method preload (line 30) | def preload(%Post{id: post_id, user_id: user_id}, :user) do method preload (line 35) | def preload([%Post{id: 1}, %Post{id: 2, user_id: 2}], :user), method preload (line 38) | def preload(resources, _), do: resources method get_by (line 40) | def get_by(User, %{id: "1"}), do: %User{} method get_by (line 41) | def get_by(User, _), do: nil method get_by (line 43) | def get_by(Post, %{id: "1"}), do: %Post{id: 1} method get_by (line 44) | def get_by(Post, %{id: "2"}), do: %Post{id: 2, user_id: 2} method get_by (line 45) | def get_by(Post, %{id: _}), do: nil method get_by (line 47) | def get_by(Post, %{slug: "slug1"}), do: %Post{id: 1, slug: "slug1"} method get_by (line 48) | def get_by(Post, %{slug: "slug2"}), do: %Post{id: 2, slug: "slug2", us... method get_by (line 49) | def get_by(Post, %{slug: _}), do: nil class Helpers (line 89) | defmodule Helpers method unauthorized_handler (line 90) | def unauthorized_handler(conn) do method not_found_handler (line 96) | def not_found_handler(conn) do method non_halting_unauthorized_handler (line 103) | def non_halting_unauthorized_handler(conn) do class ErrorHandler (line 108) | defmodule ErrorHandler method not_found_handler (line 111) | def not_found_handler(%Plug.Conn{} = conn) do method not_found_handler (line 115) | def not_found_handler(%Phoenix.LiveView.Socket{} = socket) do method unauthorized_handler (line 119) | def unauthorized_handler(%Plug.Conn{} = conn) do method unauthorized_handler (line 123) | def unauthorized_handler(%Phoenix.LiveView.Socket{} = socket) do