diff options
Diffstat (limited to 'object/fetch/exact_blob_reader.go')
| -rw-r--r-- | object/fetch/exact_blob_reader.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/object/fetch/exact_blob_reader.go b/object/fetch/exact_blob_reader.go new file mode 100644 index 00000000..95f5e1aa --- /dev/null +++ b/object/fetch/exact_blob_reader.go @@ -0,0 +1,14 @@ +package fetch + +import ( + "io" + + objectid "codeberg.org/lindenii/furgit/object/id" + objecttype "codeberg.org/lindenii/furgit/object/type" +) + +// ExactBlobReader returns a reader for the content of the blob at id, +// together with its content size in bytes. +func (r *Fetcher) ExactBlobReader(id objectid.ObjectID) (io.ReadCloser, int64, error) { + return r.exactReader(id, objecttype.TypeBlob, "blob") +} |
