KafkaBatcher.Config (kafka_batcher v1.0.1)

KafkaBatcher configuration processing. All config parameters are described in details in README.md Examples of configs can be found in the files config/test.exs and test/support/collectors/collector_handlers.ex

Summary

Types

Link to this type

sasl_mechanism()

@type sasl_mechanism() :: :plain | :scram_sha_256 | :scram_sha_512
@type sasl_type() :: {sasl_mechanism(), binary(), binary()} | :undefined

Functions

Link to this function

build_topic_config(opts)

@spec build_topic_config(opts :: Keyword.t()) :: Keyword.t()
Link to this function

collectors_spec()

@spec collectors_spec() :: [:supervisor.child_spec()]
Link to this function

general_producer_config()

@spec general_producer_config() :: Keyword.t()
Link to this function

get_collector_config(topic_name)

@spec get_collector_config(topic_name :: binary()) :: Keyword.t()
Link to this function

get_configs_by_collector!()

@spec get_configs_by_collector!() :: [{atom(), Keyword.t()}]
Link to this function

get_configs_by_topic_name()

@spec get_configs_by_topic_name() :: [{binary(), Keyword.t()}]

Return all configured topics with its config.

Link to this function

get_endpoints()

@spec get_endpoints() :: [{binary(), non_neg_integer()}]
Link to this function

get_endpoints(config)

@spec get_endpoints(config :: Keyword.t()) :: [{binary(), non_neg_integer()}]