diff options
Diffstat (limited to 'interfaces')
-rwxr-xr-x | interfaces/config/interface.go | 3 | ||||
-rw-r--r-- | interfaces/redis/interface.go | 7 |
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 } |