Add functions to compute unique prefix length

This commit is contained in:
Alexander Neumann 2014-11-24 22:09:22 +01:00
parent 2c5d07a571
commit bb62218743
4 changed files with 86 additions and 2 deletions

View file

@ -21,10 +21,14 @@ var (
ErrAlreadyPresent = errors.New("blob is already present in backend")
)
type Lister interface {
List(Type) (IDs, error)
}
type Server interface {
Create(Type, []byte) (ID, error)
Get(Type, ID) ([]byte, error)
List(Type) (IDs, error)
Lister
Test(Type, ID) (bool, error)
Remove(Type, ID) error
Version() uint