summaryrefslogtreecommitdiff
path: root/payload/payload.go
diff options
context:
space:
mode:
Diffstat (limited to 'payload/payload.go')
-rwxr-xr-xpayload/payload.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/payload/payload.go b/payload/payload.go
deleted file mode 100755
index a475bc75..00000000
--- a/payload/payload.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package payload
-
-import (
- "github.com/spiral/roadrunner/v2/utils"
-)
-
-// Payload carries binary header and body to stack and
-// back to the server.
-type Payload struct {
- // Context represent payload context, might be omitted.
- Context []byte
-
- // body contains binary payload to be processed by WorkerProcess.
- Body []byte
-
- // Type of codec used to decode/encode payload
- Codec byte
-}
-
-// String returns payload body as string
-func (p *Payload) String() string {
- return utils.AsString(p.Body)
-}