Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i set the nacos GroupName #58

Open
nobody05 opened this issue Apr 11, 2022 · 1 comment
Open

how can i set the nacos GroupName #58

nobody05 opened this issue Apr 11, 2022 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@nobody05
Copy link

nobody05 commented Apr 11, 2022

i use the [email protected] in my project , with nacos registry plugins, the question is how can i set the nacos client GroupName
my main.go code like this , i not found how can set that option.

clientConfig := *constant.NewClientConfig(
		constant.WithNotLoadCacheAtStart(true),
		constant.WithNamespaceId(global.RegistrySetting.NamespaceId),
		constant.WithCacheDir(global.RegistrySetting.CacheDir),
		constant.WithLogDir(global.RegistrySetting.LogDir),
	)
	registry := nacos.NewRegistry(nacos.WithClientConfig(clientConfig), nacos.WithAddress([]string{global.RegistrySetting.Host + ":" + strconv.Itoa(global.RegistrySetting.Port)}))


svc := micro.NewService(
		micro.Name(serviceName),
		micro.Registry(registry),
		micro.Config(serviceConfig),
	)
@xpunch xpunch added the help wanted Extra attention is needed label Apr 11, 2022
@xpunch xpunch transferred this issue from micro/go-micro Sep 17, 2022
@Davincible
Copy link
Contributor

If the option doesn't exist yet, you should be able to implement this yourself pretty easily

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants