dev.cheleb.ziotapir
Members list
Packages
Type members
Classlikes
A client to the backend, extending the endpoints as methods.
A client to the backend, extending the endpoints as methods.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Configuration for the backend client.
Configuration for the backend client.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
The live implementation of the BackendClient.
The live implementation of the BackendClient.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
BackendClientLive.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
Represents an HTTP error with a status code, message, and cause.
Represents an HTTP error with a status code, message, and cause.
Attributes
- Companion
- object
- Supertypes
-
trait Producttrait Equalsclass RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Typed exception for restricted endpoints.
Typed exception for restricted endpoints.
Attributes
- Supertypes
-
trait Producttrait Equalsclass RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
A trait that provides a method to gather all the routes from a controllers.
A trait that provides a method to gather all the routes from a controllers.
The method gatherRoutes takes a function that selects the routes from a controller, the type parameter C is the type of the context that the routes require (Streams, WebSockets, etc.).
Type parameters
- C
-
The type of the context that the routes require.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
A base controller for all secured endpoints
A base controller for all secured endpoints
Value parameters
- principalExtractor
-
the function to extract the principal from the Security Input
Attributes
- Supertypes
A session management interface for Laminar applications.
A session management interface for Laminar applications.
Type parameters
- UserToken
-
The type of the user token, which should extend dev.cheleb.ziojwt.WithToken.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class SessionLive[UserToken]
Attributes
- Supertypes
Extensions
Extensions
Call the endpoint with a payload, and get a ZIO back.
Call the endpoint with a payload, and get a ZIO back.
Attributes
Call the secured endpoint with a payload, and get a ZIO back.
Call the secured endpoint with a payload, and get a ZIO back.
Attributes
Call the endpoint with a payload, and get a ZIO back.
Call the endpoint with a payload, and get a ZIO back.
Attributes
Call the secured stream endpoint with a payload, and get a ZIO back.
Call the secured stream endpoint with a payload, and get a ZIO back.
Attributes
Closes the WebSocket connection gracefully by sending a Close frame and shutting down the hub.
Closes the WebSocket connection gracefully by sending a Close frame and shutting down the hub.
Attributes
- Returns
-
A
UIO[Unit]that completes when the close operation is done.
Sends a text message over the WebSocket.
Sends a text message over the WebSocket.
Attributes
- Returns
-
A
UIO[Boolean]indicating whether the message was successfully published.
Call the WebSocket endpoint with a payload, and get a ZIO back.
Call the WebSocket endpoint with a payload, and get a ZIO back.
Attributes
Extension to ZIO[Any, E, A] that allows us to run in JS.
Extension to ZIO[Any, E, A] that allows us to run in JS.
Value parameters
- zio
-
the ZIO to run