From 0f36b19a4c54414ccd86bf1ebbc49dd86509ae46 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Wed, 11 Feb 2015 22:46:40 +0100 Subject: [PATCH] Update Server to match new Backend interface --- server.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server.go b/server.go index a5fdf111a..425c9d546 100644 --- a/server.go +++ b/server.go @@ -318,10 +318,18 @@ func (s Server) Get(t backend.Type, id backend.ID) ([]byte, error) { return s.be.Get(t, id) } +func (s Server) GetReader(t backend.Type, id backend.ID) (io.ReadCloser, error) { + return s.be.GetReader(t, id) +} + func (s Server) Create(t backend.Type, data []byte) (backend.ID, error) { return s.be.Create(t, data) } +func (s Server) CreateFrom(t backend.Type, r io.Reader) (backend.ID, error) { + return s.be.CreateFrom(t, r) +} + func (s Server) Test(t backend.Type, id backend.ID) (bool, error) { return s.be.Test(t, id) }