MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / init

Function init

internal/nodes/system_services.go:20–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18)
19
20func init() {
21 if !teaconst.IsMain {
22 return
23 }
24
25 var manager = NewSystemServiceManager()
26 events.On(events.EventReload, func() {
27 goman.New(func() {
28 err := manager.Setup()
29 if err != nil {
30 remotelogs.Error("SYSTEM_SERVICE", "setup system services failed: "+err.Error())
31 }
32 })
33 })
34}
35
36// SystemServiceManager 系统服务管理
37type SystemServiceManager struct {

Callers

nothing calls this directly

Calls 6

OnFunction · 0.92
NewFunction · 0.92
ErrorFunction · 0.92
NewSystemServiceManagerFunction · 0.85
SetupMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected