Create dbstream interface

This commit is contained in:
Bel LaPointe
2021-02-07 12:53:56 -06:00
parent c0d561aa50
commit dcf1594e17
4 changed files with 64 additions and 9 deletions

6
db.go
View File

@@ -2,10 +2,16 @@ package storage
import (
"fmt"
"io"
"strconv"
"strings"
)
type DBStream interface {
GetStream(string, ...string) (io.Reader, error)
SetStream(string, io.Reader, ...string) error
}
type DB interface {
Get(string, ...string) ([]byte, error)
Set(string, []byte, ...string) error