View Source Neuron.ConfigUtils (neuron v5.1.0)

This module provides helper functions to read config + options for Neuron.

Link to this section Summary

Functions

Returns the Connection module that is configured in Neuron. Default is Neuron.Connection.Http.

Returns the Connection library that is configured in Neuron, or overriden in options. Default is Neuron.Connection.Http.

Returns the connection options that is configured in Neuron, or overriden in options.

Returns the JSON library that is configured in Neuron. Default is Jason.

Returns the JSON library that is configured in Neuron, or overriden in options. Default is Jason.

Returns the JSON parsing options that is configured in Neuron, or overriden in options.

Link to this section Functions

@spec connection_module() :: module()

Returns the Connection module that is configured in Neuron. Default is Neuron.Connection.Http.

Link to this function

connection_module(options)

View Source

Returns the Connection library that is configured in Neuron, or overriden in options. Default is Neuron.Connection.Http.

Link to this function

connection_options(options)

View Source

Returns the connection options that is configured in Neuron, or overriden in options.

@spec json_library() :: module()

Returns the JSON library that is configured in Neuron. Default is Jason.

Returns the JSON library that is configured in Neuron, or overriden in options. Default is Jason.

Returns the JSON parsing options that is configured in Neuron, or overriden in options.