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

// 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
}

// String returns payload body as string
func (p *Payload) String() string {
	return string(p.Body)
}