dev.cheleb.ziotapir.server
Members list
Type members
Classlikes
Base trait for all controllers.
Base trait for all controllers.
This trait provides a list of routes that will be added to the server. It allows simple aggregation in the server see dev.cheleb.ziotapir.server.Routes#gatherRoutes for more information.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
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 controllers are created in the makeControllers method, which is a ZIO effect that requires a context of type Deps. This allows the routes to have access to any dependencies they need, such as a database connection or a configuration object.
Type parameters
- Deps
-
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
Extensions
Extensions
Converts a ZStream of JSON-encodable values to a ZStream of bytes representing JSON array.
Converts a ZStream of JSON-encodable values to a ZStream of bytes representing JSON array.
Attributes
- Returns
-
A ZStream of bytes representing JSON array.
Converts a ZStream of JSON-encodable values to a ZStream of bytes representing JSON lines.
Converts a ZStream of JSON-encodable values to a ZStream of bytes representing JSON lines.
Attributes
- Returns
-
A ZStream of bytes representing JSON lines.