mirror of
https://github.com/jxxghp/MoviePilot-Plugins.git
synced 2026-06-05 07:26:45 +00:00
- 优化插件目录结构和数据结构, 解耦API层和服务层 - 添加了一些Pydantic模型, 用于校验配置 - 支持独立的订阅链接配置 - 新增覆写代理组和出站代理操作 - 支持 smart 组和代理集合 - 代理组回环检测 - 使用异步调度器 - 显示规则更改日期 - 完善了对嵌套逻辑规则和子规则的配置和验证
48 lines
1.2 KiB
Python
48 lines
1.2 KiB
Python
from typing import Union
|
|
|
|
from pydantic import Field, BaseModel
|
|
|
|
from .anytlsproxy import AnyTLSProxy
|
|
from .directproxy import DirectProxy
|
|
from .dnsproxy import DnsProxy
|
|
from .httpproxy import HttpProxy
|
|
from .hysteriaproxy import HysteriaProxy
|
|
from .hysteria2proxy import Hysteria2Proxy
|
|
from .mieruproxy import MieruProxy
|
|
from .networkmixin import NetworkMixin
|
|
from .proxybase import ProxyBase
|
|
from .shadowsocksproxy import ShadowsocksProxy
|
|
from .shadowsocksrproxy import ShadowsocksRProxy
|
|
from .snellproxy import SnellProxy
|
|
from .socks5proxy import Socks5Proxy
|
|
from .sshproxy import SshProxy
|
|
from .tlsmixin import TLSMixin
|
|
from .trojanproxy import TrojanProxy
|
|
from .tuicproxy import TuicProxy
|
|
from .vlessproxy import VlessProxy
|
|
from .vmessproxy import VmessProxy
|
|
from .wireguardproxy import WireGuardProxy
|
|
|
|
ProxyType = Union[
|
|
AnyTLSProxy,
|
|
DirectProxy,
|
|
DnsProxy,
|
|
HttpProxy,
|
|
HysteriaProxy,
|
|
Hysteria2Proxy,
|
|
MieruProxy,
|
|
ShadowsocksProxy,
|
|
ShadowsocksRProxy,
|
|
SnellProxy,
|
|
Socks5Proxy,
|
|
SshProxy,
|
|
TrojanProxy,
|
|
TuicProxy,
|
|
VlessProxy,
|
|
VmessProxy,
|
|
WireGuardProxy,
|
|
]
|
|
|
|
class Proxy(BaseModel):
|
|
__root__: ProxyType = Field(..., discriminator="type")
|