Mutare.CallRouting.ArgumentRoutes (mutare v0.4.1)

Copy Markdown View Source

The resolved argument treatments returned by Mutare.CallRouting.route_arguments/1.

One treatment per entry of Mutare.CallRouting.Call.arguments, in order. new/2 validates that shape immediately (and normalizes each treatment — a keyed refinement written [leading, key: treatment, …] is stored in its internal form); Mutare validates callback results again at the boundary.

Summary

Functions

Build the routes for call: one treatment per argument, in argument order — the order a static route declaration uses.

The treatments, aligned with the call's arguments.

Types

t()

@opaque t()

Functions

new(call, treatments)

Build the routes for call: one treatment per argument, in argument order — the order a static route declaration uses.

treatments(argument_routes)

@spec treatments(t()) :: [Mutare.CallRouting.treatment()]

The treatments, aligned with the call's arguments.