update
This commit is contained in:
@@ -3,6 +3,7 @@ package consul
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.makemake.in/kzkzzzz/mycommon/myconf"
|
"git.makemake.in/kzkzzzz/mycommon/myconf"
|
||||||
|
"git.makemake.in/kzkzzzz/mycommon/mygrpc"
|
||||||
"git.makemake.in/kzkzzzz/mycommon/myregistry"
|
"git.makemake.in/kzkzzzz/mycommon/myregistry"
|
||||||
"github.com/hashicorp/consul/api"
|
"github.com/hashicorp/consul/api"
|
||||||
"github.com/hashicorp/consul/api/watch"
|
"github.com/hashicorp/consul/api/watch"
|
||||||
@@ -177,7 +178,7 @@ func (c *Consul) Client() *api.Client {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func GrpcUrl(serviceName string, conf *myconf.Config) string {
|
func GrpcUrl(serviceName string, conf *myconf.Config) string {
|
||||||
return GrpcUrlWithTag("", "grpc-"+serviceName, conf)
|
return GrpcUrlWithTag("", mygrpc.ServicePrefix+serviceName, conf)
|
||||||
}
|
}
|
||||||
|
|
||||||
func GrpcUrlWithTag(tag string, serviceName string, conf *myconf.Config) string {
|
func GrpcUrlWithTag(tag string, serviceName string, conf *myconf.Config) string {
|
||||||
|
|||||||
Reference in New Issue
Block a user