minipaste/store/store.go
2022-04-20 02:37:27 +02:00

15 lines
214 B
Go

package store
import (
"errors"
"io"
)
var ErrNoSuchItem = errors.New("no such item")
type Store interface {
Add(r io.Reader) (string, error)
Delete(id string) error
Get(id string) (io.ReadCloser, error)
}