13 lines
199 B
Go
13 lines
199 B
Go
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)
|
|
}
|