ExIhdlSubscriptionBase v1.2.0 ExIhdlSubscriptionBase.IngestPipe View Source

Convenience functions do do with ingest pipes.

Link to this section Summary

Types

Minimum necessary information required to create an ingest pipe consisting of a topic and a subscription.

Functions

Ensures a pipe exists.

From a list of subscriptions, will find the subscription that matches best the given pipe args.

Link to this section Types

Link to this type

pipe_args() View Source
pipe_args() :: %{
  registry_topic: String.t(),
  moap_key: String.t(),
  moap_module: String.t(),
  subscription_suffix: String.t()
}

Minimum necessary information required to create an ingest pipe consisting of a topic and a subscription.

Link to this section Functions

Link to this function

ensure_pipe(map) View Source
ensure_pipe(pipe_args()) :: {:ok, map()} | {:error, map()}

Ensures a pipe exists.

Link to this function

find_subscription(subscriptions, map) View Source
find_subscription([map()], pipe_args()) ::
  {:ok, nil} | {:ok, map()} | {:error, any()}

From a list of subscriptions, will find the subscription that matches best the given pipe args.