summaryrefslogtreecommitdiff
path: root/internal/payload.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/payload.go')
-rwxr-xr-xinternal/payload.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/internal/payload.go b/internal/payload.go
new file mode 100755
index 00000000..63983bad
--- /dev/null
+++ b/internal/payload.go
@@ -0,0 +1,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)
+}