(config FullConfigType)
| 125 | } |
| 126 | |
| 127 | func (w *Watcher) notifyHandlers(config FullConfigType) { |
| 128 | handlers := w.handlers |
| 129 | for _, handler := range handlers { |
| 130 | go func(h ConfigUpdateHandler) { |
| 131 | defer func() { |
| 132 | panichandler.PanicHandler("filewatcher:notifyHandlers", recover()) |
| 133 | }() |
| 134 | h(config) |
| 135 | }(handler) |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | func (w *Watcher) GetFullConfig() FullConfigType { |
| 140 | w.mutex.Lock() |
no test coverage detected