├── .formatter.exs ├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── config └── config.exs ├── lib ├── ecto_facade.ex └── ecto_facade │ ├── algorithm.ex │ ├── algorithms │ ├── random.ex │ ├── roundrobin.ex │ └── weight_roundrobin.ex │ └── repo.ex ├── mix.exs ├── mix.lock └── test ├── ecto_facade ├── algorithms │ ├── roundrobin_test.exs │ └── weight_roundrobin_test.exs └── repo_test.exs ├── support └── test_repo.exs └── test_helper.exs /.formatter.exs: -------------------------------------------------------------------------------- 1 | [ 2 | inputs: ["mix.exs", "{config,lib,test}/**/*.{ex,exs}"] 3 | ] 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azranel/ecto_facade/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azranel/ecto_facade/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azranel/ecto_facade/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azranel/ecto_facade/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azranel/ecto_facade/HEAD/README.md -------------------------------------------------------------------------------- /config/config.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azranel/ecto_facade/HEAD/config/config.exs -------------------------------------------------------------------------------- /lib/ecto_facade.ex: -------------------------------------------------------------------------------- 1 | defmodule EctoFacade do 2 | end 3 | -------------------------------------------------------------------------------- /lib/ecto_facade/algorithm.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azranel/ecto_facade/HEAD/lib/ecto_facade/algorithm.ex -------------------------------------------------------------------------------- /lib/ecto_facade/algorithms/random.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azranel/ecto_facade/HEAD/lib/ecto_facade/algorithms/random.ex -------------------------------------------------------------------------------- /lib/ecto_facade/algorithms/roundrobin.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azranel/ecto_facade/HEAD/lib/ecto_facade/algorithms/roundrobin.ex -------------------------------------------------------------------------------- /lib/ecto_facade/algorithms/weight_roundrobin.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azranel/ecto_facade/HEAD/lib/ecto_facade/algorithms/weight_roundrobin.ex -------------------------------------------------------------------------------- /lib/ecto_facade/repo.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azranel/ecto_facade/HEAD/lib/ecto_facade/repo.ex -------------------------------------------------------------------------------- /mix.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azranel/ecto_facade/HEAD/mix.exs -------------------------------------------------------------------------------- /mix.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azranel/ecto_facade/HEAD/mix.lock -------------------------------------------------------------------------------- /test/ecto_facade/algorithms/roundrobin_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azranel/ecto_facade/HEAD/test/ecto_facade/algorithms/roundrobin_test.exs -------------------------------------------------------------------------------- /test/ecto_facade/algorithms/weight_roundrobin_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azranel/ecto_facade/HEAD/test/ecto_facade/algorithms/weight_roundrobin_test.exs -------------------------------------------------------------------------------- /test/ecto_facade/repo_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azranel/ecto_facade/HEAD/test/ecto_facade/repo_test.exs -------------------------------------------------------------------------------- /test/support/test_repo.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azranel/ecto_facade/HEAD/test/support/test_repo.exs -------------------------------------------------------------------------------- /test/test_helper.exs: -------------------------------------------------------------------------------- 1 | Code.require_file("./support/test_repo.exs", __DIR__) 2 | ExUnit.start() 3 | --------------------------------------------------------------------------------