BaseService¶
This Service implements the singleton pattern and is directly or indirectly used by all types of Jetfactory services.
API
-
class
jetfactory.service.
BaseService
[source]¶ The Service base class used for creating Package Services, it implements the singleton pattern as Services are commonly used in many parts of a Package.
Variables: - app – Jetfactory application instance
- loop – Asyncio event loop (uvloop)
-
classmethod
register
(pkg, mgr)[source]¶ Class method used internally by the Jetfactory manager to register a Service
Parameters: - pkg – instance of
jetfactory.Jetpack
- mgr – instance of
Jetfactory.JetManager
- pkg – instance of