Files
ShadowsocksX-NG/ShadowsocksX-NG2/Domain/RuntimeConfiguration.swift
T
Qiu Yuzhou ea801d5f38 feat(catalog): remove node enable state
Migrate legacy enabled fields to v3 without preserving their semantics.
Keep recoverable invalid imports visible and filter them during activation.
2026-09-22 08:40:13 +08:00

24 lines
714 B
Swift
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/// 组激活时因已知本地阻塞问题被跳过的服务器。
struct SkippedServer: Equatable, Sendable {
let id: NodeID
let reason: LeafInvalidationReason
}
/// 激活产出:活动目标身份 + 完整派生文档。组目标保持组 UUID(CONTEXT.md
/// 「Active target」),不被 sslocal 实际选中的后代替换。
struct RuntimeConfiguration: Equatable, Sendable {
let targetID: NodeID
let document: SslocalRuntimeDocument
let skippedServers: [SkippedServer]
init(
targetID: NodeID,
document: SslocalRuntimeDocument,
skippedServers: [SkippedServer] = []
) {
self.targetID = targetID
self.document = document
self.skippedServers = skippedServers
}
}