Packages

LiveView-style runtime for Gleam.

Current section

Files

Jump to
lightspeed include lightspeed@router_Route.hrl
Raw

include/lightspeed@router_Route.hrl

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