working on List

This commit is contained in:
bel
2019-06-21 17:13:18 -06:00
parent 6ac77d247e
commit ade973d19d
13 changed files with 178 additions and 2 deletions

5
map.go
View File

@@ -1,6 +1,7 @@
package storage
import (
"errors"
"fmt"
)
@@ -28,6 +29,10 @@ func (m *Map) Close() error {
return nil
}
func (m *Map) List(ns []string, limits ...string) ([]string, error) {
return nil, errors.New("not impl")
}
func (m *Map) Get(key string, ns ...string) ([]byte, error) {
namespace := resolveNamespace(ns)
if _, ok := (*m)[namespace]; !ok {