impl map stream
parent
9206e39c0b
commit
ff8b908ee7
3
db.go
3
db.go
|
|
@ -33,6 +33,9 @@ func New(key Type, params ...string) (db DB, err error) {
|
||||||
db, err = NewDynomite(params[0], params[1], params[2])
|
db, err = NewDynomite(params[0], params[1], params[2])
|
||||||
case REDIS:
|
case REDIS:
|
||||||
db, err = NewRedis(params[0], params[1], params[2])
|
db, err = NewRedis(params[0], params[1], params[2])
|
||||||
|
case MAPSTREAM:
|
||||||
|
db = NewMapStream()
|
||||||
|
err = nil
|
||||||
case MAP:
|
case MAP:
|
||||||
db = NewMap()
|
db = NewMap()
|
||||||
err = nil
|
err = nil
|
||||||
|
|
|
||||||
3
type.go
3
type.go
|
|
@ -20,6 +20,7 @@ const (
|
||||||
MONGO = Type(iota)
|
MONGO = Type(iota)
|
||||||
MINIO = Type(iota)
|
MINIO = Type(iota)
|
||||||
RCLONE = Type(iota)
|
RCLONE = Type(iota)
|
||||||
|
MAPSTREAM = Type(iota)
|
||||||
)
|
)
|
||||||
|
|
||||||
func (t Type) String() string {
|
func (t Type) String() string {
|
||||||
|
|
@ -28,6 +29,8 @@ func (t Type) String() string {
|
||||||
return "dynomite"
|
return "dynomite"
|
||||||
case REDIS:
|
case REDIS:
|
||||||
return "redis"
|
return "redis"
|
||||||
|
case MAPSTREAM:
|
||||||
|
return "mapstream"
|
||||||
case MAP:
|
case MAP:
|
||||||
return "map"
|
return "map"
|
||||||
case RCLONE:
|
case RCLONE:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue