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

Function init

internal/nodes/origin_state_manager.go:19–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17var SharedOriginStateManager = NewOriginStateManager()
18
19func init() {
20 if !teaconst.IsMain {
21 return
22 }
23
24 events.On(events.EventLoaded, func() {
25 goman.New(func() {
26 SharedOriginStateManager.Start()
27 })
28 })
29 events.On(events.EventQuit, func() {
30 SharedOriginStateManager.Stop()
31 })
32}
33
34const (
35 maxOriginStates = 512 // 最多可以监控的源站状态数量

Callers

nothing calls this directly

Calls 4

OnFunction · 0.92
NewFunction · 0.92
StartMethod · 0.65
StopMethod · 0.65

Tested by

no test coverage detected