summaryrefslogtreecommitdiff
path: root/commands.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-01-23 19:51:15 -0500
committerWolfy-J <[email protected]>2018-01-23 19:51:15 -0500
commit78a42de837928cf7d10a1ae04d7e82e56d66e1e2 (patch)
tree8882b9a051bcc9c42328df583c0bb8c39a89591e /commands.go
parentfa4bd78d9f7c5f74e8445374370927c742fc4e78 (diff)
API update
Diffstat (limited to 'commands.go')
-rw-r--r--commands.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/commands.go b/commands.go
deleted file mode 100644
index 5368097f..00000000
--- a/commands.go
+++ /dev/null
@@ -1,27 +0,0 @@
-package roadrunner
-
-import (
- "encoding/json"
- "github.com/spiral/goridge"
-)
-
-// TerminateCommand must stop underlying process.
-type TerminateCommand struct {
- Terminate bool `json:"terminate"`
-}
-
-// PidCommand send greeting message between processes in json format.
-type PidCommand struct {
- Pid int `json:"pid"`
- Parent int `json:"parent,omitempty"`
-}
-
-// sends control message via relay using JSON encoding
-func sendCommand(rl goridge.Relay, command interface{}) error {
- bin, err := json.Marshal(command)
- if err != nil {
- return err
- }
-
- return rl.Send(bin, goridge.PayloadControl)
-}