summaryrefslogtreecommitdiff
path: root/payload.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-01-28 14:35:07 +0300
committerWolfy-J <[email protected]>2018-01-28 14:35:07 +0300
commitc57232ae2bc7253ded326226948dfc7f9b324753 (patch)
treea7710545a75f9ecf483618ff742f55ed8a0d5fae /payload.go
parente4e5cadce7deef4c36c038a4900d55ea30dd099c (diff)
golint
Diffstat (limited to 'payload.go')
-rw-r--r--payload.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/payload.go b/payload.go
index 63a709dc..8b029e1d 100644
--- a/payload.go
+++ b/payload.go
@@ -1,11 +1,13 @@
package roadrunner
+// Payload carries binary header and body to workers and
+// back to the server.
type Payload struct {
- Head, Body []byte
-}
-
-func (p *Payload) HeadString() {
+ // Head represent payload context, might be omitted
+ Head []byte
+ // Body contains binary payload to be processed by worker
+ Body []byte
}
// String returns payload body as string