feat: add openconnect

This commit is contained in:
duorameng
2026-06-25 20:06:38 +08:00
parent fac1582fe0
commit 90f06de298
49 changed files with 3854 additions and 969 deletions
+9 -9
View File
@@ -14,20 +14,20 @@ const (
DefaultTaskTimeout = 30
// Settings Section 常量
SectionSite = "site"
SectionSystem = "system"
SectionScheduler = "scheduler"
SectionSecurity = "security"
SectionNotify = "notify"
SectionSite = "site"
SectionSystem = "system"
SectionScheduler = "scheduler"
SectionSecurity = "security"
SectionNotify = "notify"
// Site Settings Key 常量
KeyTitle = "title"
KeySubtitle = "subtitle"
KeyIcon = "icon"
KeyPageSize = "page_size"
KeyCookieDays = "cookie_days"
KeyOpenapiToken = "openapi_token"
KeyActiveWebUI = "active_webui"
KeyPageSize = "page_size"
KeyCookieDays = "cookie_days"
KeyOpenapiToken = "openapi_token"
KeyActiveWebUI = "active_webui"
// Security Settings Key 常量
KeySecret = "secret"
+22
View File
@@ -0,0 +1,22 @@
package constant
const (
// CookieActiveInterconnectNodeID 穿越状态下标识目标子节点 ID 的 Cookie 键名
CookieActiveInterconnectNodeID = "active_interconnect_node_id"
// SectionInterconnect 互联设置分组
SectionInterconnect = "interconnect"
// 互联设置相关 Key
KeyInterconnectToken = "interconnect_token"
KeyInterconnectParentURL = "interconnect_parent_url"
KeyInterconnectParentToken = "interconnect_parent_token"
KeyInterconnectRole = "interconnect_role"
// 互联角色
InterconnectRoleMaster = "master"
InterconnectRoleChild = "child"
// 互联系统事件
EventInterconnectChildStatus = "interconnect_child_status"
)