Packages

LiveView-style runtime for Gleam.

Current section

Files

Jump to
lightspeed include lightspeed@router_MatchedRoute.hrl
Raw

include/lightspeed@router_MatchedRoute.hrl

-record(matched_route, {
path :: binary(),
pattern :: binary(),
view_id :: binary(),
params :: list(lightspeed@router:route_param()),
decode_event :: fun((lightspeed@event:inbound_event(), list(lightspeed@router:route_param())) -> {ok,
any()} |
{error, lightspeed@event:decode_error()})
}).