kvtools / valkeyrie

Distributed Key/Value Store Abstraction Library written in Go.
https://pkg.go.dev/github.com/kvtools/valkeyrie
Apache License 2.0
278 stars 43 forks source link

fix: clean up supportedBackend #67

Closed tomMoulard closed 2 years ago

tomMoulard commented 2 years ago

This PR allows getting a properly formatted error when using stores.

When registering all currently available store, the error when creating a new unsupported store will be:

Backend storage not supported yet, please choose one of boltdb, consul, dynamodb, etcd, etcdv3, redis, zk

instead of:

Backend storage not supported yet, please choose one of

related to #65