MCPcopy
hub / github.com/google/seesaw / Run

Method Run

ecu/core.go:92–109  ·  view source on GitHub ↗

Run starts the ECU.

()

Source from the content-addressed store, hash-verified

90
91// Run starts the ECU.
92func (e *ECU) Run() {
93 if err := e.cfg.Authenticator.AuthInit(); err != nil {
94 log.Warningf("Failed to initialise authentication, remote control will likely fail: %v", err)
95 }
96
97 stats := newECUStats(e)
98 stats.notify(e.cfg.StatsPublishers...)
99 go stats.run()
100
101 go e.control()
102 go e.monitoring()
103
104 <-e.shutdown
105 e.shutdownControl <- true
106 e.shutdownMonitor <- true
107 <-e.shutdownControl
108 <-e.shutdownMonitor
109}
110
111// Shutdown notifies the ECU to shutdown.
112func (e *ECU) Shutdown() {

Callers 2

iptablesRuleExistsFunction · 0.45
mainFunction · 0.45

Calls 6

controlMethod · 0.95
monitoringMethod · 0.95
newECUStatsFunction · 0.85
AuthInitMethod · 0.65
notifyMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected