From f98b4e4b8165497b64d28d3e54babd1a43ad46d6 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Sun, 25 Jun 2017 21:49:04 +0200 Subject: File and Blob objects --- objects/object.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'objects/object.go') 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 +} -- cgit v1.2.3-54-g00ecf