1
0
mirror of https://github.com/quay/quay.git synced 2025-11-20 21:42:27 +03:00
Files
quay/health/models_interface.py
2020-02-05 19:55:07 -08:00

17 lines
422 B
Python

from abc import ABCMeta, abstractmethod
from six import add_metaclass
@add_metaclass(ABCMeta)
class HealthCheckDataInterface(object):
"""
Interface that represents all data store interactions required by health checks.
"""
@abstractmethod
def check_health(self, app_config):
"""
Returns True if the connection to the database is healthy and False otherwise.
"""
pass