add rclone to standard set

master
Bel LaPointe 2020-01-21 11:26:42 -07:00
parent b4c455fba3
commit 898f7e886a
2 changed files with 5 additions and 0 deletions

2
db.go
View File

@ -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:

View File

@ -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: