freshness v0.3.0 Freshness.Config View Source

Freshness configuration options

Link to this section Summary

Types

t()

name: the name to register a freshness tree under. Used with Elixir.Registry to address open connections to a perticular endpoint.
count: number of servers in the pool
index: the i-th process to register under this name
mint: Mint configuration options for opening connections (scheme, port, host, options)

Link to this section Types

Link to this type

pool_name()

View Source
pool_name() :: any()
Link to this type

t()

View Source
t() :: %Freshness.Config{
  count: pos_integer(),
  index: non_neg_integer(),
  mint: Freshness.Config.MintConfig.t(),
  name: pool_name()
}

name: the name to register a freshness tree under. Used with Elixir.Registry to address open connections to a perticular endpoint.
count: number of servers in the pool
index: the i-th process to register under this name
mint: Mint configuration options for opening connections (scheme, port, host, options)

Link to this section Functions

Link to this function

new(name, count, scheme, host, port, options \\ [])

View Source
Link to this function

registry_name()

View Source
registry_name() :: atom()