protocol

package
v0.0.0-...-ff36db3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GossProtocol

type GossProtocol int

GossProtocol 传输协议号.

const (
	CONN_AUTH        GossProtocol = 1000 //连接授权.
	REPORT_NODE_INFO GossProtocol = 1001 //上报节点信息.
	MSG              GossProtocol = 1002 //发送消息.
	ADD_NODE         GossProtocol = 1003 //新增节点.
	REMOVE_NODE      GossProtocol = 1004 //删除节点.
	SEND_FILE        GossProtocol = 1005 //发送文件.
	READ_FILE        GossProtocol = 1006 //读取文件.
)

type NodeInfo

type NodeInfo struct {
	Types    string `json:"types"`
	CpuNum   string `json:"cpu_num"`
	MemSize  string `json:"mem_size"`
	SourceIP string `json:"source_ip"`
	Name     string `json:"name"`
}

NodeInfo 节点信息.

Jump to

Keyboard shortcuts

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