malomo v0.0.2 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: binary(),
  host: binary(),
  http_client: module(),
  http_client_opts: any(),
  json_codec: module(),
  path: binary(),
  port: pos_integer() | nil,
  scheme: binary()
}

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.