Update Server to match new Backend interface

This commit is contained in:
Alexander Neumann 2015-02-11 22:46:40 +01:00
parent 92e2647505
commit 0f36b19a4c
1 changed files with 8 additions and 0 deletions

View File

@ -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)
}