Documentation ¶
Index ¶
- type ChangeAPINodeMessage
- type CheckLocalFirewallMessage
- type CheckSystemdServiceMessage
- type CleanCacheMessage
- type ConnectedAPINodeMessage
- type MessageCode
- type NSCheckSystemdServiceMessage
- type NSConnectedAPINodeMessage
- type NSMessageCode
- type NewNSNodeTaskMessage
- type NewNodeTaskMessage
- type ReadCacheMessage
- type StatCacheMessage
- type WriteCacheMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeAPINodeMessage ¶
type ChangeAPINodeMessage struct {
Addr string `json:"addr"`
}
ChangeAPINodeMessage 修改API地址
type CheckLocalFirewallMessage ¶
type CheckLocalFirewallMessage struct {
Name string `json:"name"`
}
CheckLocalFirewallMessage 检查本地防火墙
type CheckSystemdServiceMessage ¶
type CheckSystemdServiceMessage struct { }
CheckSystemdServiceMessage Systemd服务
type CleanCacheMessage ¶
type CleanCacheMessage struct {
CachePolicyJSON []byte `json:"cachePolicyJSON"`
}
type ConnectedAPINodeMessage ¶
type ConnectedAPINodeMessage struct {
APINodeId int64 `json:"apiNodeId"`
}
ConnectedAPINodeMessage 连接API节点成功
type MessageCode ¶
type MessageCode = string
const ( MessageCodeConnectedAPINode MessageCode = "connectedAPINode" // 边缘节点连接API节点成功 MessageCodeWriteCache MessageCode = "writeCache" // 写入缓存 MessageCodeReadCache MessageCode = "readCache" // 读取缓存 MessageCodeStatCache MessageCode = "statCache" // 统计缓存 MessageCodeCleanCache MessageCode = "cleanCache" // 清理缓存 MessageCodeCheckSystemdService MessageCode = "checkSystemdService" // 检查Systemd服务 MessageCodeCheckLocalFirewall MessageCode = "checkLocalFirewall" // 检查本地防火墙 MessageCodeNewNodeTask MessageCode = "newNodeTask" // 有新的节点任务产生 MessageCodeChangeAPINode MessageCode = "changeAPINode" // 改变新的API节点 )
type NSCheckSystemdServiceMessage ¶
type NSCheckSystemdServiceMessage struct { }
NSCheckSystemdServiceMessage Systemd服务
type NSConnectedAPINodeMessage ¶
type NSConnectedAPINodeMessage struct {
APINodeId int64 `json:"apiNodeId"`
}
NSConnectedAPINodeMessage 连接API节点成功
type NSMessageCode ¶
type NSMessageCode = string
const ( NSMessageCodeConnectedAPINode NSMessageCode = "connectedAPINode" // NS节点连接API节点成功 NSMessageCodeCheckSystemdService NSMessageCode = "checkSystemdService" // 检查Systemd服务 NSMessageCodeNewNodeTask NSMessageCode = "newNodeTask" // 有新的节点任务产生 )
NS节点相关消息
type ReadCacheMessage ¶
type ReadCacheMessage struct { CachePolicyJSON []byte `json:"cachePolicyJSON"` Key string `json:"key"` }
ReadCacheMessage 读取缓存
type StatCacheMessage ¶
type StatCacheMessage struct {
CachePolicyJSON []byte `json:"cachePolicyJSON"`
}
StatCacheMessage 统计缓存
Click to show internal directories.
Click to hide internal directories.