# -*- encoding: utf-8 -*-
'''
_______________________    ________________
__  __ \__  /____  _/_ |  / /_  __ \_  ___/
_  / / /_  /  __  / __ | / /_  / / /____ \
/ /_/ /_  /____/ /  __ |/ / / /_/ /____/ /
\____/ /_____/___/  _____/  \____/ /____/

@File      :   OlivOS/bootDataAPI.py
@Author    :   lunzhiPenxil仑质
@Contact   :   lunzhipenxil@gmail.com
@License   :   AGPL
@Copyright :   (C) 2020-2021, OlivOS-Team
@Desc      :   None
'''

# here put the import lib

import OlivOS

default_Conf = {
    "system" : {
        "name" : "OlivOS",
        "init" : [
            "OlivOS_logger",
            "OlivOS_account_config",
            "OlivOS_multiLoginUI",
            "OlivOS_account_fix",
            "OlivOS_account_config_save",
            "OlivOS_account_config",
            "OlivOS_gocqhttp_lib_exe_model",
            "OlivOS_account_config_safe",
            "OlivOS_plugin",
            "OlivOS_flask_post_rx",
            "OlivOS_qqGuild_link",
            "OlivOS_telegram_poll",
            "OlivOS_fanbook_poll",
            "OlivOS_dodo_poll",
            "OlivOS_kaiheila_link",
            "OlivOS_dodo_link"
        ],
        "control_queue" : "OlivOS_control_queue",
        "interval" : 0.2
    },
    "queue" : [
        "OlivOS_control_queue",
        "OlivOS_rx_queue",
        "OlivOS_logger_queue",
        "OlivOS_dodobot_rx_queue"
    ],
    "models" : {
        "OlivOS_multiLoginUI" : {
            "enable" : True,
            "name" : "OlivOS_multiLoginUI",
            "type" : "multiLoginUI",
            "logger_proc" : "OlivOS_logger"
        },
        "OlivOS_account_config_save" : {
            "enable" : True,
            "name" : "OlivOS_account_config_save",
            "type" : "account_config_save",
            "logger_proc" : "OlivOS_logger",
            "data" : {
                "path" : "./conf/account.json"
            }
        },
        "OlivOS_account_fix" : {
            "enable" : True,
            "name" : "OlivOS_account_fix",
            "type" : "account_fix",
            "logger_proc" : "OlivOS_logger"
        },
        "OlivOS_account_config" : {
            "enable" : True,
            "name" : "OlivOS_account_config",
            "type" : "account_config",
            "logger_proc" : "OlivOS_logger",
            "data" : {
                "path" : "./conf/account.json"
            }
        },
        "OlivOS_account_config_safe" : {
            "enable" : True,
            "name" : "OlivOS_account_config_safe",
            "type" : "account_config_safe",
            "logger_proc" : "OlivOS_logger",
            "data" : {
                "path" : "./conf/account.json"
            }
        },
        "OlivOS_logger" : {
            "enable" : True,
            "name" : "OlivOS_logger",
            "type" : "logger",
            "interval" : 0.002,
            "dead_interval" : 1,
            "proc_mode" : "threading",
            "rx_queue" : "OlivOS_logger_queue",
            "mode" : [
                "console_color",
                "logfile"
            ],
            "fliter" : [2, 3, 4, 5]
        },
        "OlivOS_plugin" : {
            "enable" : True,
            "name" : "OlivOS_plugin",
            "type" : "plugin",
            "interval" : 0.002,
            "dead_interval" : 1,
            "rx_queue" : "OlivOS_rx_queue",
            "tx_queue" : [
                "OlivOS_dodobot_rx_queue"
            ],
            "control_queue" : "OlivOS_control_queue",
            "logger_proc" : "OlivOS_logger",
            "treading_mode" : "full",
            "restart_gate" : 1000,
            "enable_auto_restart" : True,
            "debug" : False
        },
        "OlivOS_flask_post_rx" : {
            "enable" : True,
            "name" : "OlivOS_flask_post_rx",
            "type" : "post",
            "interval" : 0.002,
            "dead_interval" : 1,
            "tx_queue" : "OlivOS_rx_queue",
            "logger_proc" : "OlivOS_logger",
            "debug" : False,
            "server" : {
                "auto" : True,
                "host" : "0.0.0.0",
                "port" : 55001
            }
        },
        "OlivOS_qqGuild_link" : {
            "enable" : True,
            "name" : "OlivOS_qqGuild_link",
            "type" : "qqGuild_link",
            "interval" : 0.2,
            "dead_interval" : 1,
            "rx_queue" : None,
            "tx_queue" : "OlivOS_rx_queue",
            "logger_proc" : "OlivOS_logger",
            "debug" : False
        },
        "OlivOS_kaiheila_link" : {
            "enable" : True,
            "name" : "OlivOS_kaiheila_link",
            "type" : "kaiheila_link",
            "interval" : 0.2,
            "dead_interval" : 1,
            "tx_queue" : "OlivOS_rx_queue",
            "logger_proc" : "OlivOS_logger",
            "debug" : False
        },
        "OlivOS_telegram_poll" : {
            "enable" : True,
            "name" : "OlivOS_telegram_poll",
            "type" : "telegram_poll",
            "interval" : 0.2,
            "dead_interval" : 1,
            "tx_queue" : "OlivOS_rx_queue",
            "logger_proc" : "OlivOS_logger",
            "debug" : False
        },
        "OlivOS_fanbook_poll" : {
            "enable" : True,
            "name" : "OlivOS_fanbook_poll",
            "type" : "fanbook_poll",
            "interval" : 0.2,
            "dead_interval" : 1,
            "tx_queue" : "OlivOS_rx_queue",
            "logger_proc" : "OlivOS_logger",
            "debug" : False
        },
        "OlivOS_dodo_link" : {
            "enable" : True,
            "name" : "OlivOS_dodo_link",
            "type" : "dodo_link",
            "interval" : 0.2,
            "dead_interval" : 1,
            "tx_queue" : "OlivOS_rx_queue",
            "logger_proc" : "OlivOS_logger",
            "debug" : False
        },
        "OlivOS_dodo_poll" : {
            "enable" : True,
            "name" : "OlivOS_dodo_poll",
            "type" : "dodo_poll",
            "interval" : 0.2,
            "dead_interval" : 1,
            "tx_queue" : "OlivOS_rx_queue",
            "logger_proc" : "OlivOS_logger",
            "debug" : False
        },
        "OlivOS_dodobot_ea" : {
            "enable" : False,
            "name" : "OlivOS_dodobot_ea",
            "type" : "dodobot_ea",
            "interval" : 0.2,
            "dead_interval" : 1,
            "rx_queue" : "OlivOS_dodobot_rx_queue",
            "tx_queue" : "OlivOS_rx_queue",
            "logger_proc" : "OlivOS_logger",
            "debug" : False
        },
        "OlivOS_dodobot_ea_tx" : {
            "enable" : False,
            "name" : "OlivOS_dodobot_ea_tx",
            "type" : "dodobot_ea_tx",
            "interval" : 0.2,
            "dead_interval" : 1,
            "rx_queue" : "OlivOS_dodobot_rx_queue",
            "tx_queue" : "OlivOS_rx_queue",
            "logger_proc" : "OlivOS_logger",
            "debug" : False
        },
        "OlivOS_gocqhttp_lib_exe_model" : {
            "enable" : True,
            "name" : "OlivOS_gocqhttp_lib_exe_model",
            "type" : "gocqhttp_lib_exe_model",
            "interval" : 0.2,
            "dead_interval" : 1,
            "tx_queue" : "OlivOS_rx_queue",
            "logger_proc" : "OlivOS_logger",
            "target_proc" : "OlivOS_flask_post_rx",
            "debug" : False
        }
    }
}

