PageApp

harness.webUI.PageApp
See thePageApp companion object
trait PageApp extends ZIOApp

Attributes

Companion:
object
Graph
Supertypes
trait ZIOApp
trait ZIOAppVersionSpecific
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Types

override type Environment = HarnessEnv & ClientT

Value members

Concrete methods

override def bootstrap: HTaskLayer[HarnessEnv & ClientT]

A layer that manages the acquisition and release of services necessary for the application to run.

A layer that manages the acquisition and release of services necessary for the application to run.

Attributes

Definition Classes
ZIOApp
override def run: URIO[HarnessEnv & ClientT & Scope, Any]

The main function of the application, which can access the command-line arguments through the args helper method of this class. If the provided effect fails for any reason, the cause will be logged, and the exit code of the application will be non-zero. Otherwise, the exit code of the application will be zero.

The main function of the application, which can access the command-line arguments through the args helper method of this class. If the provided effect fails for any reason, the cause will be logged, and the exit code of the application will be non-zero. Otherwise, the exit code of the application will be zero.

Attributes

Definition Classes
ZIOApp

Inherited methods

final def <>(that: ZIOApp)(implicit trace: Trace): ZIOApp

Composes this ZIOApp with another ZIOApp, to yield an application that executes the logic of both applications.

Composes this ZIOApp with another ZIOApp, to yield an application that executes the logic of both applications.

Attributes

Inherited from:
ZIOApp
final def exit(code: ExitCode)(implicit trace: Trace): UIO[Unit]

A helper function to exit the application with the specified exit code.

A helper function to exit the application with the specified exit code.

Attributes

Inherited from:
ZIOApp
final def getArgs(implicit trace: Trace): ZIO[ZIOAppArgs, Nothing, Chunk[String]]

A helper function to obtain access to the command-line arguments of the application. You may use this helper function inside your run function.

A helper function to obtain access to the command-line arguments of the application. You may use this helper function inside your run function.

Attributes

Inherited from:
ZIOApp
final def invoke(args: Chunk[String])(implicit trace: Trace): ZIO[Any, Any, Any]

Invokes the main app. Designed primarily for testing.

Invokes the main app. Designed primarily for testing.

Attributes

Inherited from:
ZIOApp
final def main(args0: Array[String]): Unit

The Scala main function, intended to be called only by the Scala runtime.

The Scala main function, intended to be called only by the Scala runtime.

Attributes

Inherited from:
ZIOAppPlatformSpecific (hidden)
def runtime: Runtime[Any]

Attributes

Inherited from:
ZIOApp

Abstract fields

Concrete fields

val 404Page: Url => Page

Page to display on 404-not-found. You can override this in your app.

Page to display on 404-not-found. You can override this in your app.

Attributes

val errorPage: (IfHidden, HError) => Page

Page to display when URL parsing results in an error. You can override this in your app.

Page to display when URL parsing results in an error. You can override this in your app.

Attributes

Implicits

Implicits

implicit override def environmentTag: Tag[HarnessEnv & ClientT]

Attributes

Definition Classes
ZIOApp

Inherited implicits

implicit inline def validateEnv[R1, R, E, A](inline zio: ZIO[R, E, A]): ZIO[R1, E, A]

This implicit conversion macro will ensure that the provided ZIO effect does not require more than the provided environment.

This implicit conversion macro will ensure that the provided ZIO effect does not require more than the provided environment.

If it is missing requirements, it will report a descriptive error message. Otherwise, the effect will be returned unmodified.

Attributes

Inherited from:
ZIOAppVersionSpecific