diff options
author | Wolfy-J <[email protected]> | 2018-01-28 14:35:07 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-01-28 14:35:07 +0300 |
commit | c57232ae2bc7253ded326226948dfc7f9b324753 (patch) | |
tree | a7710545a75f9ecf483618ff742f55ed8a0d5fae /payload.go | |
parent | e4e5cadce7deef4c36c038a4900d55ea30dd099c (diff) |
golint
Diffstat (limited to 'payload.go')
-rw-r--r-- | payload.go | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |