MCPcopy Index your code
hub / github.com/PasarGuard/node / Controller

Struct Controller

controller/controller.go:27–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27type Controller struct {
28 backend backend.Backend
29 cfg *config.Config
30 apiPort int
31 metricPort int
32 clientIP string
33 lastRequest time.Time
34 stats *common.SystemStatsResponse
35 cancelFunc context.CancelFunc
36 mu sync.RWMutex
37}
38
39func New(cfg *config.Config) *Controller {
40 _, cancel := context.WithCancel(context.Background())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected