Beispiel #1
0
def get_settings_dao(context: Context) -> SettingsDao:
    return context.get_or_register_module(MODULE_NAME,
                                          lambda: SettingsDao(context))
Beispiel #2
0
def get_raid_stats_dao(context: Context) -> RaidStatsDao:
    return context.get_or_register_module(MODULE_NAME,
                                          lambda: RaidStatsDao(context))
Beispiel #3
0
def get_raid_stat_service(context: Context) -> RaidStatService:
    return context.get_or_register_module(MODULE_NAME,
                                          lambda: RaidStatService(context))
def get_command_restriction_service(context: Context) -> CommandRestrictionService:
    return context.get_or_register_module(
        MODULE_NAME, lambda: CommandRestrictionService(context)
    )
Beispiel #5
0
def get_raid_postgres_dao(context: Context) -> RaidPostgresDao:
    return context.get_or_register_module(MODULE_NAME,
                                          lambda: RaidPostgresDao(context))
Beispiel #6
0
def get_command_restriction_dao(context: Context) -> CommandRestrictionDao:
    return context.get_or_register_module(
        MODULE_NAME, lambda: CommandRestrictionDao(context))
Beispiel #7
0
def get_settings_service(context: Context) -> SettingsService:
    return context.get_or_register_module(MODULE_NAME,
                                          lambda: SettingsService(context))
Beispiel #8
0
def get_queue_dao(context: Context) -> QueueDao:
    return context.get_or_register_module(MODULE_NAME,
                                          lambda: QueueDao(context))
Beispiel #9
0
def get_postgres_connection(context: Context) -> PostgresConnection:
    return context.get_or_register_module(MODULE_NAME,
                                          lambda: PostgresConnection(context))
Beispiel #10
0
def get_redis_connection(context: Context) -> RedisConnection:
    return context.get_or_register_module(MODULE_NAME,
                                          lambda: RedisConnection(context))