summaryrefslogtreecommitdiff
path: root/interfaces
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-12-21 13:14:42 +0300
committerValery Piashchynski <[email protected]>2020-12-21 13:14:42 +0300
commite7a62f19155bbba9ac17527e2abb30d31c632655 (patch)
treef060dbd61f0dc0d1093937eced738bd6aead1373 /interfaces
parentb403dd170bf3dc3ce451ba4ada40dd55773b032a (diff)
Finish redis plugin
Diffstat (limited to 'interfaces')
-rwxr-xr-xinterfaces/config/interface.go3
-rw-r--r--interfaces/redis/interface.go7
2 files changed, 6 insertions, 4 deletions
diff --git a/interfaces/config/interface.go b/interfaces/config/interface.go
index 00010eae..2a7c67ce 100755
--- a/interfaces/config/interface.go
+++ b/interfaces/config/interface.go
@@ -14,6 +14,9 @@ type Configurer interface {
// Get used to get config section
Get(name string) interface{}
+ // Overwrite used to overwrite particular values in the unmarshalled config
+ Overwrite(values map[string]interface{}) error
+
// Has checks if config section exists.
Has(name string) bool
}
diff --git a/interfaces/redis/interface.go b/interfaces/redis/interface.go
index 61dd6c08..909c8ca4 100644
--- a/interfaces/redis/interface.go
+++ b/interfaces/redis/interface.go
@@ -2,9 +2,8 @@ package redis
import "github.com/go-redis/redis/v8"
+// Redis in the redis KV plugin interface
type Redis interface {
- GetClient() *redis.Client
- GetUniversalClient() *redis.UniversalClient
- GetClusterClient() *redis.ClusterClient
- GetSentinelClient() *redis.SentinelClient
+ // GetClient
+ GetClient() redis.UniversalClient
}