MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / NewNode

Function NewNode

internal/nodes/node.go:86–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84}
85
86func NewNode() *Node {
87 nodeInstance = &Node{
88 sock: gosock.NewTmpSock(teaconst.ProcessName),
89 oldMaxThreads: -1,
90 oldMaxCPU: -1,
91 updatingServerMap: map[int64]*serverconfigs.ServerConfig{},
92 }
93 return nodeInstance
94}
95
96// Test 检查配置
97func (this *Node) Test() error {

Callers 3

mainFunction · 0.92
TestNode_StartFunction · 0.85
TestNode_TestFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestNode_StartFunction · 0.68
TestNode_TestFunction · 0.68