impl map stream

master
Bel LaPointe 2021-02-07 13:01:45 -06:00
parent 9206e39c0b
commit ff8b908ee7
2 changed files with 6 additions and 0 deletions

3
db.go
View File

@ -33,6 +33,9 @@ func New(key Type, params ...string) (db DB, err error) {
db, err = NewDynomite(params[0], params[1], params[2])
case REDIS:
db, err = NewRedis(params[0], params[1], params[2])
case MAPSTREAM:
db = NewMapStream()
err = nil
case MAP:
db = NewMap()
err = nil

View File

@ -20,6 +20,7 @@ const (
MONGO = Type(iota)
MINIO = Type(iota)
RCLONE = Type(iota)
MAPSTREAM = Type(iota)
)
func (t Type) String() string {
@ -28,6 +29,8 @@ func (t Type) String() string {
return "dynomite"
case REDIS:
return "redis"
case MAPSTREAM:
return "mapstream"
case MAP:
return "map"
case RCLONE: