(errorHandler func(error), persistor configuration.Persistor, pluginPath string)
| 26 | } |
| 27 | |
| 28 | func NewPluginConfig(errorHandler func(error), persistor configuration.Persistor, pluginPath string) *PluginConfig { |
| 29 | return &PluginConfig{ |
| 30 | data: NewData(), |
| 31 | mutex: new(sync.RWMutex), |
| 32 | initOnce: new(sync.Once), |
| 33 | persistor: persistor, |
| 34 | onError: errorHandler, |
| 35 | pluginPath: pluginPath, |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | func (c *PluginConfig) GetPluginPath() string { |
| 40 | return c.pluginPath |
no test coverage detected