
export const ipcRouters: IpcRouters = {
  SERVER: {
    saveConfig: {
      path: "server/saveConfig",
      controller: "configController.saveConfig"
    },
    getServerConfig: {
      path: "server/getServerConfig",
      controller: "configController.getServerConfig"
    },
    resetAllConfig: {
      path: "server/resetAllConfig",
      controller: "configController.resetAllConfig"
    },
    exportConfig: {
      path: "server/exportConfig",
      controller: "configController.exportConfig"
    }
  },
  LOG: {
    getFrpLogContent: {
      path: "log/getFrpLogContent",
      controller: "logController.getFrpLogContent"
    },
    openFrpcLogFile: {
      path: "log/openFrpcLogFile",
      controller: "logController.openFrpcLogFile"
    }
  },
  VERSION: {
    getVersions: {
      path: "version/getVersions",
      controller: "versionController.getVersions"
    },
    downloadVersion: {
      path: "version/downloadVersion",
      controller: "versionController.downloadFrpVersion"
    },
    getDownloadedVersions: {
      path: "version/getDownloadedVersions",
      controller: "versionController.getDownloadedVersions"
    },
    deleteDownloadedVersion: {
      path: "version/deleteDownloadedVersion",
      controller: "versionController.deleteDownloadedVersion"
    },
    importLocalFrpcVersion: {
      path: "version/importLocalFrpcVersion",
      controller: "versionController.importLocalFrpcVersion"
    }
  },
  LAUNCH: {
    launch: {
      path: "launch/launch",
      controller: "launchController.launch"
    },
    terminate: {
      path: "launch/terminate",
      controller: "launchController.terminate"
    },
    getStatus: {
      path: "launch/getStatus",
      controller: "launchController.getStatus"
    }
  },
  PROXY: {
    createProxy: {
      path: "proxy/createProxy",
      controller: "proxyController.createProxy"
    },
    modifyProxy: {
      path: "proxy/modifyProxy",
      controller: "proxyController.modifyProxy"
    },
    deleteProxy: {
      path: "proxy/deleteProxy",
      controller: "proxyController.deleteProxy"
    },
    getAllProxies: {
      path: "proxy/getAllProxies",
      controller: "proxyController.getAllProxies"
    },
    modifyProxyStatus: {
      path: "proxy/modifyProxyStatus",
      controller: "proxyController.modifyProxyStatus"
    },
    getLocalPorts: {
      path: "proxy/getLocalPorts",
      controller: "proxyController.getLocalPorts"
    }
  },
  SYSTEM: {
    openUrl: {
      path: "system/openUrl",
      controller: "systemController.openUrl"
    },
    relaunchApp: {
      path: "system/relaunchApp",
      controller: "systemController.relaunchApp"
    },
    openAppData: {
      path: "system/openAppData",
      controller: "systemController.openAppData"
    }
  }
};

export const listeners: Listeners = {
  watchFrpcLog: {
    listenerMethod: "logService.watchFrpcLog",
    channel: "log:watchFrpcLog"
  },
  watchFrpcProcess: {
    listenerMethod: "frpcProcessService.watchFrpcProcess",
    channel: "frpcProcess:watchFrpcLog"
  }
};
