aboutsummaryrefslogtreecommitdiff
path: root/objects/object.go
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2017-06-25 21:49:04 +0200
committerLaria Carolin Chabowski <laria@laria.me>2017-06-25 21:49:04 +0200
commitf98b4e4b8165497b64d28d3e54babd1a43ad46d6 (patch)
tree56f6a34122d46a210d975849c7c599adb924f820 /objects/object.go
parent1d21280ec755525c6158cd18d01ec4e9ca73d7a0 (diff)
downloadpetrific-f98b4e4b8165497b64d28d3e54babd1a43ad46d6.tar.gz
petrific-f98b4e4b8165497b64d28d3e54babd1a43ad46d6.tar.bz2
petrific-f98b4e4b8165497b64d28d3e54babd1a43ad46d6.zip
File and Blob objects
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
+}