MCPcopy Create free account
hub / github.com/go-dev-frame/sponge / NewCenter

Function NewCenter

internal/config/serverNameExample_cc.go:9–13  ·  view source on GitHub ↗
(configFile string)

Source from the content-addressed store, hash-verified

7)
8
9func NewCenter(configFile string) (*Center, error) {
10 nacosConf := &Center{}
11 err := conf.Parse(configFile, nacosConf)
12 return nacosConf, err
13}
14
15type Center struct {
16 Nacos Nacos `yaml:"nacos" json:"nacos"`

Callers 2

getConfigFromNacosFunction · 0.92
TestInitNacosFunction · 0.85

Calls 1

ParseFunction · 0.92

Tested by 1

TestInitNacosFunction · 0.68