aboutsummaryrefslogtreecommitdiff
path: root/network/protocol/sideband64k/frame.go
diff options
context:
space:
mode:
Diffstat (limited to 'network/protocol/sideband64k/frame.go')
-rw-r--r--network/protocol/sideband64k/frame.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/network/protocol/sideband64k/frame.go b/network/protocol/sideband64k/frame.go
new file mode 100644
index 00000000..1335a8e3
--- /dev/null
+++ b/network/protocol/sideband64k/frame.go
@@ -0,0 +1,12 @@
+package sideband64k
+
+// Frame is one decoded side-band-64k frame.
+//
+// For FrameData, FrameProgress, and FrameError, Payload holds frame bytes and
+// may be empty.
+//
+// For control frames, Payload is nil.
+type Frame struct {
+ Type FrameType
+ Payload []byte
+}