Exqute v0.1.2 Exqute.Application View Source

Link to this section Summary

Functions

The child spec for Exqute

The Redis Module

The Redis Name

Redix specifications

Get a list of the configuration and configure our children

Start the children links

Stop the Supervisor

Link to this section Functions

Link to this function

child_spec(opts)

View Source
child_spec(list()) :: map()

The child spec for Exqute

Link to this function

redis_module(env)

View Source
redis_module(map()) :: module()

The Redis Module

iex> Exqute.Application.redis_module(Exqute.env())
Redix
Link to this function

redis_name(env)

View Source
redis_name(map()) :: module()

The Redis Name

iex> Exqute.Application.redis_name(Exqute.env())
Exqute.Redis.Client
Link to this function

redix_spec(env)

View Source
redix_spec(map()) :: map()

Redix specifications

iex> Exqute.Application.redix_spec(Exqute.env())
%{
  id: Redix,
  start: {Redix, :start_link,
   [[host: "exqute_redis", port: 6379, name: Exqute.Redis.Client]]},
  type: :worker
}

Get a list of the configuration and configure our children

Link to this function

start_link(env)

View Source
start_link(map()) :: {:ok, pid()}

Start the children links

Link to this function

stop(supervisor)

View Source
stop(pid()) :: :ok

Stop the Supervisor