aboutsummaryrefslogtreecommitdiffstats
path: root/client/go/internal/slime/data_value.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/go/internal/slime/data_value.go')
-rw-r--r--client/go/internal/slime/data_value.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/client/go/internal/slime/data_value.go b/client/go/internal/slime/data_value.go
new file mode 100644
index 00000000000..1ac602952d7
--- /dev/null
+++ b/client/go/internal/slime/data_value.go
@@ -0,0 +1,25 @@
+// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+// Author: arnej
+
+package slime
+
+type DataValue struct {
+ valueBase
+ v []byte
+}
+
+func newDataValue(value []byte) *DataValue {
+ return &DataValue{v: value}
+}
+
+func (d *DataValue) Valid() bool {
+ return true
+}
+
+func (d *DataValue) AsData() []byte {
+ return d.v
+}
+
+func (d *DataValue) Type() Type {
+ return DATA
+}