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

Function init

internal/nodes/task_ocsp_update.go:18–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16var sharedOCSPTask = NewOCSPUpdateTask()
17
18func init() {
19 if !teaconst.IsMain {
20 return
21 }
22
23 events.On(events.EventLoaded, func() {
24 sharedOCSPTask.version = sharedNodeConfig.OCSPVersion
25
26 goman.New(func() {
27 sharedOCSPTask.Start()
28 })
29 })
30 events.OnClose(func() {
31 sharedOCSPTask.Stop()
32 })
33}
34
35// OCSPUpdateTask 更新OCSP任务
36type OCSPUpdateTask struct {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected