1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-09-16 08:36:30 +02:00

ServiceNamespace => ServicePrefix in api server

This commit is contained in:
Ben Toogood
2020-04-07 10:38:27 +01:00
parent 316424f0f7
commit 9e116731b1

View File

@@ -18,7 +18,7 @@ type Options struct {
TLSConfig *tls.Config
Resolver resolver.Resolver
Namespace string
ServiceNamespace string
ServicePrefix string
}
func EnableCORS(b bool) Option {
@@ -57,9 +57,9 @@ func TLSConfig(t *tls.Config) Option {
}
}
func ServiceNamespace(n string) Option {
func ServicePrefix(n string) Option {
return func(o *Options) {
o.ServiceNamespace = n
o.ServicePrefix = n
}
}