aboutsummaryrefslogtreecommitdiff
path: root/objects/object.go
diff options
context:
space:
mode:
Diffstat (limited to 'objects/object.go')
-rw-r--r--objects/object.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/objects/object.go b/objects/object.go
index fbe1f98..ced78bd 100644
--- a/objects/object.go
+++ b/objects/object.go
@@ -112,3 +112,9 @@ func Unserialize(r io.Reader) (RawObject, error) {
return o, nil
}
+
+type Object interface {
+ Type() ObjectType
+ Payload() []byte
+ FromPayload([]byte) error
+}