malomo v0.0.9 Malomo.Config

Link to this section Summary

Functions

Build a new config struct.

Link to this section Types

Link to this type

t()

t() :: %Malomo.Config{
  api_key: String.t(),
  headers: Malomo.http_headers_t(),
  host: String.t(),
  http_client: module(),
  http_client_opts: any(),
  json_codec: module(),
  path: String.t(),
  port: pos_integer() | nil,
  retry: boolean(),
  retry_opts: Keyword.t(),
  scheme: String.t()
}

Link to this section Functions

Link to this function

new(overrides \\ %{})

new(map()) :: t()

Build a new config struct.

The config is composed of values provided through application configuration and a map of optional overrides. If overrides are provided they will be merged with the application configuration.