feat: 优化代理准备并完善远端部署
- 增加严格代理、两分钟预取、白名单去重与分组状态展示\n- 增加远端注册令牌和安全地址校验\n- 增加 Docker Compose、Caddy 示例与控制中心部署文档
This commit is contained in:
+17
-14
@@ -3,6 +3,8 @@ package remote
|
||||
import (
|
||||
"encoding/json"
|
||||
"time"
|
||||
|
||||
"douyu_go/internal/types"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -17,20 +19,21 @@ const (
|
||||
|
||||
// Snapshot is the latest state reported by one application instance.
|
||||
type Snapshot struct {
|
||||
MachineID string `json:"machineId"`
|
||||
MachineName string `json:"machineName"`
|
||||
InstanceID string `json:"instanceId"`
|
||||
InstanceName string `json:"instanceName"`
|
||||
Version string `json:"version"`
|
||||
ActivityID string `json:"activityId,omitempty"`
|
||||
State string `json:"state"`
|
||||
Running bool `json:"running"`
|
||||
RunID string `json:"runId,omitempty"`
|
||||
Results map[string]string `json:"results,omitempty"`
|
||||
AccountCount int `json:"accountCount"`
|
||||
QueuedEvents uint64 `json:"queuedEvents"`
|
||||
DroppedEvents uint64 `json:"droppedEvents"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
MachineID string `json:"machineId"`
|
||||
MachineName string `json:"machineName"`
|
||||
InstanceID string `json:"instanceId"`
|
||||
InstanceName string `json:"instanceName"`
|
||||
Version string `json:"version"`
|
||||
ActivityID string `json:"activityId,omitempty"`
|
||||
State string `json:"state"`
|
||||
Running bool `json:"running"`
|
||||
RunID string `json:"runId,omitempty"`
|
||||
Results map[string]string `json:"results,omitempty"`
|
||||
ProxyStatus *types.ProxyStatusView `json:"proxyStatus,omitempty"`
|
||||
AccountCount int `json:"accountCount"`
|
||||
QueuedEvents uint64 `json:"queuedEvents"`
|
||||
DroppedEvents uint64 `json:"droppedEvents"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
}
|
||||
|
||||
// LogEvent is one structured event uploaded by an application instance.
|
||||
|
||||
Reference in New Issue
Block a user