summaryrefslogtreecommitdiff
path: root/payload.go
blob: 8b029e1d8172fd6379f1f3bf300c393a6b15cf1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package roadrunner

// Payload carries binary header and body to workers and
// back to the server.
type Payload struct {
	// 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
func (p *Payload) String() string {
	return string(p.Body)
}