From cee4bc46097506d6e892b6af194751434700621a Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Wed, 16 Jun 2021 12:56:02 +0300 Subject: - Update jobs sources - Update Arch diagramm Signed-off-by: Valery Piashchynski --- plugins/jobs/plugin.go | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 plugins/jobs/plugin.go (limited to 'plugins/jobs/plugin.go') 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 +} -- cgit v1.2.3