MCPcopy Create free account
hub / github.com/deepflowio/deepflow / IsMasterRegion

Function IsMasterRegion

server/controller/controller/master.go:39–44  ·  view source on GitHub ↗
(cfg *config.ControllerConfig)

Source from the content-addressed store, hash-verified

37)
38
39func IsMasterRegion(cfg *config.ControllerConfig) bool {
40 if cfg.TrisolarisCfg.NodeType == "master" {
41 return true
42 }
43 return false
44}
45
46// try to check until success
47func IsMasterController(cfg *config.ControllerConfig) bool {

Callers 3

StartFunction · 0.85
IsMasterControllerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected