Packages
cloister
0.2.2
0.18.1
0.18.0
0.17.3
0.17.2
0.17.1
0.17.0
0.16.0
0.15.0
0.14.0
0.13.0
0.12.5
0.12.4
0.12.3
0.12.2
0.12.1
0.12.0
0.11.0
0.10.3
0.10.2
0.10.1
0.10.0
0.9.0
0.8.0
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.5
0.6.4
0.6.3
retired
0.6.2
retired
0.6.1
retired
0.6.0
retired
0.5.0
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.9
0.3.8
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.2
0.2.1
0.2.0
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
The helper application to manage cluster, that uses hash ring to route requests to nodes. Automatically keeps track of connected nodes, provides helpers to determine where the term is to be executed, to multicast to all the nodes in the cluster and to retrieve current state of the cluster.
Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Cloister.MixProject do
use Mix.Project
@app :cloister
@version "0.2.2"
def project do
[
app: @app,
version: @version,
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
preferred_cli_env: ["test.cluster": :test],
xref: [exclude: []],
description: description(),
package: package(),
deps: deps(),
aliases: aliases(),
xref: [exclude: []],
docs: docs(),
releases: [
cloister: [
include_executables_for: [:unix],
applications: [logger: :permanent, runtime_tools: :permanent]
]
],
dialyzer: [
plt_file: {:no_warn, ".dialyzer/plts/dialyzer.plt"},
ignore_warnings: ".dialyzer/ignore.exs"
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
applications: [:logger, :libring],
mod: {Cloister.Application, []},
start_phases: [{:warming_up, []}],
registered: [Cloister, Cloister.Node]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(:ci), do: ["lib", "test/support"]
defp elixirc_paths(:dev), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:libring, "~> 1.0"},
# dev / test
{:credo, "~> 1.0", only: [:dev, :ci]},
{:test_cluster_task, "~> 0.5", only: [:dev, :test, :ci]},
{:dialyxir, "~> 1.0.0-rc.6", only: [:dev, :test, :ci], runtime: false},
{:ex_doc, "~> 0.11", only: :dev}
]
end
defp aliases do
[
quality: ["format", "credo --strict", "dialyzer"],
"quality.ci": [
"format --check-formatted",
"credo --strict",
"dialyzer"
],
test: ["test.cluster"]
]
end
defp description do
"""
The helper application to manage cluster, that uses hash ring to route requests to nodes.
Automatically keeps track of connected nodes, provides helpers
to determine where the term is to be executed, to multicast to all the nodes
in the cluster and to retrieve current state of the cluster.
"""
end
defp package do
[
name: @app,
files: ~w|config stuff lib mix.exs README.md|,
maintainers: ["Aleksei Matiushkin"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/am-kantox/#{@app}",
"Docs" => "https://hexdocs.pm/#{@app}"
}
]
end
defp docs do
[
main: "readme",
source_ref: "v#{@version}",
canonical: "http://hexdocs.pm/#{@app}",
logo: "stuff/cloister-48x48.png",
source_url: "https://github.com/am-kantox/#{@app}",
assets: "stuff/images",
extras: ["README.md"],
groups_for_modules: []
]
end
end