# -*- coding: utf-8 -*-
"""
Module to process export
"""


def export_info(cfg, data, category, measure_type):
    """
    Export data to service

    :param cfg: Config file
    :type cfg: TwinDBBackupConfig
    :param data: Data
    :param category: Category of data
    :param measure_type: Type of measure
    :param category: Category
    """

    transport = cfg.exporter

    if transport:
        transport.export(
            category=category,
            measure_type=measure_type,
            data=data
        )

# -*- coding: utf-8 -*-
"""
Module to process export
"""


def export_info(cfg, data, category, measure_type):
    """
    Export data to service

    :param cfg: Config file
    :type cfg: TwinDBBackupConfig
    :param data: Data
    :param category: Category of data
    :param measure_type: Type of measure
    :param category: Category
    """

    transport = cfg.exporter

    if transport:
        transport.export(
            category=category,
            measure_type=measure_type,
            data=data
        )

# -*- coding: utf-8 -*- Module to process export Export data to service      :param cfg: Config file     :type cfg: TwinDBBackupConfig     :param data: Data     :param category: Category of data     :param measure_type: Type of measure     :param category: Category