| 15 | ) |
| 16 | |
| 17 | type globalConfigOwner struct { |
| 18 | mtx sync.Mutex // mutex for protecting updates of config |
| 19 | c atomic.Pointer // pointer to `Config` (cluster + local + override config) |
| 20 | oc atomic.Pointer // pointer to `ConfigToUpdate`, override configuration on node |
| 21 | confPath atomic.Pointer // initial global config path |
| 22 | } |
| 23 | |
| 24 | // GCO (Global Config Owner) is responsible for updating and notifying |
| 25 | // listeners about any changes in the config. Global Config is loaded |
nothing calls this directly
no outgoing calls
no test coverage detected