Pristine.Core.Pipeline (Pristine v0.3.1)

Copy Markdown View Source

Execute normalized request metadata through the shared request pipeline.

Summary

Functions

execute_endpoint(endpoint, payload, context, opts \\ [])

@spec execute_endpoint(
  Pristine.Core.EndpointMetadata.t(),
  term(),
  Pristine.Core.Context.t(),
  keyword()
) ::
  {:ok, term()} | {:error, term()}

stream_operation(operation, context, opts \\ [])

@spec stream_operation(Pristine.Operation.t(), Pristine.Core.Context.t(), keyword()) ::
  {:ok, Pristine.Response.t()} | {:error, term()}