Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
c

LiveRouteMountAspectParamsBuilder

class LiveRouteMountAspectParamsBuilder[R, A, Need, Ctx, Params]

Parameterized route construction after mount aspects have produced context.

Defined by scalive.LiveRouteMountAspectParamsBuilder. View source (scalive/api/src/scalive/routing/LiveRouting.scala:722-829)

Methods7

apply

def apply: [Msg, Model](factory: (A, zio.http.Request, Ctx) => LiveView.Routed[Msg, Model, Params])(LiveRoute[R, A] { type Input = Need })

Defined by scalive.LiveRouteMountAspectParamsBuilder.apply. View source (scalive/api/src/scalive/routing/LiveRouting.scala:777-779)

def apply: [Msg, Model](view: => LiveView.Routed[Msg, Model, Params])(LiveRoute[R, A] { type Input = Need })

Defined by scalive.LiveRouteMountAspectParamsBuilder.apply. View source (scalive/api/src/scalive/routing/LiveRouting.scala:772-775)

context

def context: [Msg, Model](factory: Ctx => LiveView.Routed[Msg, Model, Params])(LiveRoute[R, A] { type Input = Need })

Defined by scalive.LiveRouteMountAspectParamsBuilder.context. View source (scalive/api/src/scalive/routing/LiveRouting.scala:781-784)

def context: [Msg, Model](factory: (A, zio.http.Request, Ctx) => LiveView.Routed[Msg, Model, Params])(LiveRoute[R, A] { type Input = Need })

Defined by scalive.LiveRouteMountAspectParamsBuilder.context. View source (scalive/api/src/scalive/routing/LiveRouting.scala:793-796)

def context: [R1, Msg, Model](factory: (Ctx, R1) => LiveView.Routed[Msg, Model, Params])(using evidence$1: zio.package.Tag[R1])(LiveRoute[&[R, R1], A] { type Input = Need })

Defined by scalive.LiveRouteMountAspectParamsBuilder.context. View source (scalive/api/src/scalive/routing/LiveRouting.scala:786-791)

def context: [R1, Msg, Model](factory: (A, zio.http.Request, Ctx, R1) => LiveView.Routed[Msg, Model, Params])(using evidence$1: zio.package.Tag[R1])(LiveRoute[&[R, R1], A] { type Input = Need })

Defined by scalive.LiveRouteMountAspectParamsBuilder.context. View source (scalive/api/src/scalive/routing/LiveRouting.scala:798-812)

from

def from: [Msg, Model](factory: (A, zio.http.Request, Ctx) => LiveView.Routed[Msg, Model, Params])(LiveRoute[R, A] { type Input = Need })

Defined by scalive.LiveRouteMountAspectParamsBuilder.from. View source (scalive/api/src/scalive/routing/LiveRouting.scala:814-828)

guardConnectedTurns

def guardConnectedTurns[Result <: Unit](guard: Ctx => zio.IO[LiveConnectedTurnFailure, Result]): LiveRouteMountAspectParamsBuilder[R, A, Need, Ctx, Params]

Appends a policy check before each connected application turn.

Guards at one boundary run in declaration order; session guards run before route guards. The callback receives the context available at this builder. Succeed with Unit to continue, or fail with LiveConnectedTurnFailure for a controlled halt, redirect, reload, or disconnect. Guards are inherited by nested LiveViews and do not run during mount, disconnected rendering, or framework cleanup.

Defined by scalive.LiveRouteMountAspectParamsBuilder.guardConnectedTurns. View source (scalive/api/src/scalive/routing/LiveRouting.scala:753-764)

location

def location(params: Params): LiveLocation

Defined by scalive.LiveRouteMountAspectParamsBuilder.location. View source (scalive/api/src/scalive/routing/LiveRouting.scala:766-767)

locationEither

def locationEither(params: Params): Either[LiveLocation.EncodeError, LiveLocation]

Defined by scalive.LiveRouteMountAspectParamsBuilder.locationEither. View source (scalive/api/src/scalive/routing/LiveRouting.scala:769-770)

withConnectedResources

def withConnectedResources[Result <: Unit](initialize: (Ctx, ConnectedResources) => zio.Task[Result]): LiveRouteMountAspectParamsBuilder[R, A, Need, Ctx, Params]

Appends connected setup using the context available at this declaration.

Defined by scalive.LiveRouteMountAspectParamsBuilder.withConnectedResources. View source (scalive/api/src/scalive/routing/LiveRouting.scala:732-743)