Creates a ZIO layer for SqlMessageCatalogueService. Uses .orDie for fail-fast behavior - the application will not start if messages cannot be loaded. This ensures the application has all required messages available before serving requests.
Creates a ZIO layer for SqlMessageCatalogueService. Uses .orDie for fail-fast behavior - the application will not start if messages cannot be loaded. This ensures the application has all required messages available before serving requests.
Creates a SqlMessageCatalogueService with pre-loaded messages. This method loads all messages for specified languages at creation time. Use .orDie in layer to ensure application fails fast if messages cannot be loaded.
Creates a SqlMessageCatalogueService with pre-loaded messages. This method loads all messages for specified languages at creation time. Use .orDie in layer to ensure application fails fast if messages cannot be loaded.
Value parameters
defaultLanguage
The default language for the service
languages
Languages to pre-load at startup
repository
The repository for loading messages
Attributes
Returns
Task containing the service with pre-loaded messages