summaryrefslogtreecommitdiff
path: root/plugins/server/plugin.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-05 00:18:44 +0300
committerValery Piashchynski <[email protected]>2021-01-05 00:18:44 +0300
commit877b0ed461c7d5e1de87b7561f414aeb236cf3ec (patch)
tree2afdf6fa505f91043e4f22bfc7229d691e3da1d5 /plugins/server/plugin.go
parent984953a9db1d94817bda2e3d9266583151b1b437 (diff)
Add dput.cf file for the ubuntu launchpad
Add a lot of comments to the exported functions
Diffstat (limited to 'plugins/server/plugin.go')
-rw-r--r--plugins/server/plugin.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/server/plugin.go b/plugins/server/plugin.go
index 5d1f26d3..8a843723 100644
--- a/plugins/server/plugin.go
+++ b/plugins/server/plugin.go
@@ -21,6 +21,7 @@ import (
"github.com/spiral/roadrunner/v2/utils"
)
+// PluginName for the server
const PluginName = "server"
// Plugin manages worker
@@ -53,11 +54,13 @@ func (server *Plugin) Name() string {
return PluginName
}
+// Serve (Start) server plugin (just a mock here to satisfy interface)
func (server *Plugin) Serve() chan error {
errCh := make(chan error, 1)
return errCh
}
+// Stop used to close chosen in config factory
func (server *Plugin) Stop() error {
if server.factory == nil {
return nil