aboutsummaryrefslogtreecommitdiffstats
path: root/examples/elixir_hello_world/lib
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-10-22 09:15:57 +0200
committerLoïc Hoguin <[email protected]>2013-10-22 09:15:57 +0200
commitaab63d605c595d8d0cd33646d13942d6cb372b60 (patch)
tree4a4a613d580cb8641e6b387e9940b1a26c2d3387 /examples/elixir_hello_world/lib
parente7d4cff84832e094eeabcbdfdd9781456fe242d2 (diff)
downloadcowboy-aab63d605c595d8d0cd33646d13942d6cb372b60.tar.gz
cowboy-aab63d605c595d8d0cd33646d13942d6cb372b60.tar.bz2
cowboy-aab63d605c595d8d0cd33646d13942d6cb372b60.zip
Remove the elixir_hello_world example
Elixir examples will be in a separate repository maintained by Elixir capable developers.
Diffstat (limited to 'examples/elixir_hello_world/lib')
-rw-r--r--examples/elixir_hello_world/lib/elixir_hello_world.ex13
-rw-r--r--examples/elixir_hello_world/lib/elixir_hello_world/supervisor.ex12
-rw-r--r--examples/elixir_hello_world/lib/elixir_hello_world/top_page_handler.ex12
3 files changed, 0 insertions, 37 deletions
diff --git a/examples/elixir_hello_world/lib/elixir_hello_world.ex b/examples/elixir_hello_world/lib/elixir_hello_world.ex
deleted file mode 100644
index 2da484b..0000000
--- a/examples/elixir_hello_world/lib/elixir_hello_world.ex
+++ /dev/null
@@ -1,13 +0,0 @@
-defmodule ElixirHelloWorld do
- use Application.Behaviour
-
- def start(_type, _args) do
- dispatch = :cowboy_router.compile([
- {:_, [{"/", ElixirHelloWorld.TopPageHandler, []}]}
- ])
- {:ok, _} = :cowboy.start_http(:http, 100,
- [port: 8080],
- [env: [dispatch: dispatch]])
- ElixirHelloWorld.Supervisor.start_link
- end
-end
diff --git a/examples/elixir_hello_world/lib/elixir_hello_world/supervisor.ex b/examples/elixir_hello_world/lib/elixir_hello_world/supervisor.ex
deleted file mode 100644
index f9b569f..0000000
--- a/examples/elixir_hello_world/lib/elixir_hello_world/supervisor.ex
+++ /dev/null
@@ -1,12 +0,0 @@
-defmodule ElixirHelloWorld.Supervisor do
- use Supervisor.Behaviour
-
- def start_link do
- :supervisor.start_link(__MODULE__, [])
- end
-
- def init([]) do
- children = []
- supervise children, strategy: :one_for_one
- end
-end
diff --git a/examples/elixir_hello_world/lib/elixir_hello_world/top_page_handler.ex b/examples/elixir_hello_world/lib/elixir_hello_world/top_page_handler.ex
deleted file mode 100644
index 58e37b4..0000000
--- a/examples/elixir_hello_world/lib/elixir_hello_world/top_page_handler.ex
+++ /dev/null
@@ -1,12 +0,0 @@
-defmodule ElixirHelloWorld.TopPageHandler do
- def init(_transport, req, []) do
- {:ok, req, nil}
- end
-
- def handle(req, state) do
- {:ok, req} = :cowboy_req.reply(200, [], "Hello world!", req)
- {:ok, req, state}
- end
-
- def terminate(_reason, _req, _state), do: :ok
-end