ex_shards v0.2.0 ExShards.State
Shards State.
This module overrides the original shards_state getter and setter
functions in order to make them more Elixir-friendly – e.g.: take
advantage of pipe-operator.
Examples
state = ExShards.State.new
|> ExShards.State.module(:shards_dist)
|> ExShards.State.n_shards(4)
|> ExShards.State.pick_shard_fun(fun)
|> ExShards.State.pick_node_fun(fun)