This commit is contained in:
12
pkg/storage/storage.go
Normal file
12
pkg/storage/storage.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package storage
|
||||
|
||||
import (
|
||||
"io"
|
||||
)
|
||||
|
||||
type Storage interface {
|
||||
Get(key string) (io.Reader, error)
|
||||
Put(key string, data []byte) error
|
||||
Delete(key string) error
|
||||
List(prefix string) ([]string, error)
|
||||
}
|
||||
Reference in New Issue
Block a user