diff options
Diffstat (limited to 'plugins/jobs/plugin.go')
-rw-r--r-- | plugins/jobs/plugin.go | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/plugins/jobs/plugin.go b/plugins/jobs/plugin.go new file mode 100644 index 00000000..e708d0ca --- /dev/null +++ b/plugins/jobs/plugin.go @@ -0,0 +1,36 @@ +package jobs + +import ( + "github.com/spiral/errors" + "github.com/spiral/roadrunner/v2/plugins/config" + "github.com/spiral/roadrunner/v2/plugins/logger" +) + +const ( + PluginName string = "jobs" +) + +type Plugin struct { +} + +func (p *Plugin) Init(cfg config.Configurer, log logger.Logger) error { + const op = errors.Op("jobs_plugin_init") + + return nil +} + +func (p *Plugin) Serve() chan error { + errCh := make(chan error, 1) + + return errCh +} + +func (p *Plugin) Stop() error { + return nil +} + +func (p *Plugin) Available() {} + +func (p *Plugin) Name() string { + return PluginName +} |