fusenapi/utils/fsconfig/config_test.go

36 lines
465 B
Go
Raw Normal View History

2023-09-18 10:44:12 +00:00
package fsconfig_test
import (
"fusenapi/utils/fsconfig"
"testing"
2023-09-19 09:34:10 +00:00
"github.com/zeromicro/go-zero/rest"
2023-09-18 10:44:12 +00:00
)
2023-09-19 09:34:10 +00:00
type Config struct {
rest.RestConf
SourceMysql string
ReplicaId uint64
MainAddress string
WebsocketAddr string
OAuth struct {
Google struct {
Appid string
Secret string
}
Facebook struct {
Appid string
Secret string
}
}
}
2023-09-18 10:44:12 +00:00
func TestCase1(t *testing.T) {
2023-09-19 09:34:10 +00:00
var c Config
fsconfig.StartNacosConfig("auth.yaml", &c, nil)
2023-09-18 10:44:12 +00:00
}