add rclone to standard set
This commit is contained in:
2
db.go
2
db.go
@@ -30,6 +30,8 @@ func New(key Type, params ...string) (db DB, err error) {
|
||||
case MAP:
|
||||
db = NewMap()
|
||||
err = nil
|
||||
case RCLONE:
|
||||
db, err = NewRClone(params[0], params[1])
|
||||
case BOLT:
|
||||
db, err = NewBolt(params[0])
|
||||
case MINIO:
|
||||
|
||||
3
type.go
3
type.go
@@ -18,6 +18,7 @@ const (
|
||||
MEMCACHECLUSTER = Type(iota)
|
||||
MONGO = Type(iota)
|
||||
MINIO = Type(iota)
|
||||
RCLONE = Type(iota)
|
||||
)
|
||||
|
||||
func (t Type) String() string {
|
||||
@@ -28,6 +29,8 @@ func (t Type) String() string {
|
||||
return "redis"
|
||||
case MAP:
|
||||
return "map"
|
||||
case RCLONE:
|
||||
return "rclone"
|
||||
case COCKROACH:
|
||||
return "cockroach"
|
||||
case BOLT:
|
||||
|
||||
Reference in New Issue
Block a user