nacos viper remote provider

This commit is contained in:
yoyofx
2021-04-29 19:54:59 +08:00
parent 20220cb36f
commit bcd01f97cc
7 changed files with 290 additions and 0 deletions

8
viper_manager.go Normal file
View File

@@ -0,0 +1,8 @@
package nacos_viper_remote
import "github.com/spf13/viper"
type viperConfigManager interface {
Get(key string) ([]byte, error)
Watch(key string, stop chan bool) <-chan *viper.RemoteResponse
}