working on List
This commit is contained in:
5
mongo.go
5
mongo.go
@@ -2,6 +2,7 @@ package storage
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@@ -53,6 +54,10 @@ func NewMongo(addr string, auth ...string) (*Mongo, error) {
|
||||
return &Mongo{db: db}, nil
|
||||
}
|
||||
|
||||
func (mg *Mongo) List(ns []string, limits ...string) ([]string, error) {
|
||||
return nil, errors.New("not impl")
|
||||
}
|
||||
|
||||
func (mg *Mongo) Get(key string, ns ...string) ([]byte, error) {
|
||||
namespace := resolveNamespace(ns)
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
|
||||
|
||||
Reference in New Issue
Block a user