package payload import ( "github.com/spiral/roadrunner/v2/utils" ) // 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 utils.AsString(p.Body) }