Stargate.Producer.QueryParams (stargate v0.2.0) View Source

This modules provides the function to generate query parameters for establishing a producer connection to a topic with Pulsar.

Link to this section Summary

Functions

Generates a query parameter string to apped to the URL and path parameters when creating a Stargate.Producer connection.

Link to this section Functions

Specs

build_params(map() | nil) :: String.t()

Generates a query parameter string to apped to the URL and path parameters when creating a Stargate.Producer connection.

Stargate does not generate explicit query parameters for default values when not supplied by the calling application as Pulsar itself assumes default values when not supplied.

Query parameters with nil values are removed from the resulting connection string so only those with explicit values will be passed to Pulsar when creating a connection.