# -*- coding: utf-8 -*-
from ocyan.core.plugins import OcyanPluginConfig
from ocyan.core.utils import merge_dicts


HIGH_AVAILAIBILITY_SETTINGS = {
    "DATABASE_ROUTERS": [
        "ocyan.plugin.high_availability.databaserouter.HighAvailabilityRouter"
    ]
}


class HighAvailabilityConfig(OcyanPluginConfig):
    def contribute_to_settings(self, settings):
        return merge_dicts(settings, HIGH_AVAILAIBILITY_SETTINGS)
