diff options
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 |