working on List
This commit is contained in:
16
db.go
16
db.go
@@ -8,6 +8,7 @@ import (
|
||||
type DB interface {
|
||||
Get(string, ...string) ([]byte, error)
|
||||
Set(string, []byte, ...string) error
|
||||
List([]string, ...string) ([]string, error)
|
||||
Close() error
|
||||
}
|
||||
|
||||
@@ -57,3 +58,18 @@ func resolveNamespace(ns []string) string {
|
||||
}
|
||||
return namespace
|
||||
}
|
||||
|
||||
func resolveLimits(input []string) []string {
|
||||
output := []string{"", ""}
|
||||
if len(input) > 0 {
|
||||
output[0] = input[0]
|
||||
} else {
|
||||
output[0] = " "
|
||||
}
|
||||
if len(input) > 1 {
|
||||
output[1] = input[1]
|
||||
} else {
|
||||
output[1] = "}}}}}}}}}}}}}"
|
||||
}
|
||||
return output[:]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user