diff options
Diffstat (limited to 'plugins/config')
-rwxr-xr-x | plugins/config/plugin.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/config/plugin.go b/plugins/config/plugin.go index eb7146b2..a5215226 100755 --- a/plugins/config/plugin.go +++ b/plugins/config/plugin.go @@ -10,6 +10,8 @@ import ( "github.com/spiral/errors" ) +const PluginName string = "config" + type Viper struct { viper *viper.Viper Path string @@ -118,6 +120,19 @@ func (v *Viper) GetCommonConfig() *General { return v.CommonConfig } +func (v *Viper) Serve() chan error { + return make(chan error, 1) +} + +func (v *Viper) Stop() error { + return nil +} + +// Name returns user-friendly plugin name +func (v *Viper) Name() string { + return PluginName +} + // Available interface implementation func (v *Viper) Available() bool { return true |