Add functions to compute unique prefix length
This commit is contained in:
parent
2c5d07a571
commit
bb62218743
4 changed files with 86 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue