runHook will execute a plugin hook.
(p plugin.Plugin, event string)
| 46 | |
| 47 | // runHook will execute a plugin hook. |
| 48 | func runHook(p plugin.Plugin, event string) error { |
| 49 | pluginHook, ok := p.(plugin.PluginHook) |
| 50 | if ok { |
| 51 | return pluginHook.InvokeHook(event) |
| 52 | } |
| 53 | |
| 54 | return nil |
| 55 | } |
no test coverage detected
searching dependent graphs…