messageconfigs

package
v1.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2023 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

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 NewNSNodeTaskMessage

type NewNSNodeTaskMessage struct {
}

NewNSNodeTaskMessage 有新的节点任务

type NewNodeTaskMessage

type NewNodeTaskMessage struct {
}

NewNodeTaskMessage 有新的节点任务

type ReadCacheMessage

type ReadCacheMessage struct {
	CachePolicyJSON []byte `json:"cachePolicyJSON"`
	Key             string `json:"key"`
}

ReadCacheMessage 读取缓存

type StatCacheMessage

type StatCacheMessage struct {
	CachePolicyJSON []byte `json:"cachePolicyJSON"`
}

StatCacheMessage 统计缓存

type WriteCacheMessage

type WriteCacheMessage struct {
	CachePolicyJSON []byte `json:"cachePolicyJSON"`
	Key             string `json:"key"`
	Value           []byte `json:"value"`
	LifeSeconds     int64  `json:"lifeSeconds"`
}

WriteCacheMessage 写入缓存

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL