summaryrefslogtreecommitdiffstats
path: root/bridge/config/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/config/config.go')
-rw-r--r--bridge/config/config.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/bridge/config/config.go b/bridge/config/config.go
index cf6872a0..5da535dc 100644
--- a/bridge/config/config.go
+++ b/bridge/config/config.go
@@ -206,6 +206,7 @@ type BridgeValues struct {
}
type Config interface {
+ Viper() *viper.Viper
BridgeValues() *BridgeValues
GetBool(key string) (bool, bool)
GetInt(key string) (int, bool)
@@ -274,6 +275,10 @@ func (c *config) BridgeValues() *BridgeValues {
return c.cv
}
+func (c *config) Viper() *viper.Viper {
+ return c.v
+}
+
func (c *config) GetBool(key string) (bool, bool) {
c.RLock()
defer c.RUnlock()