We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ff592b commit 4ab9f57Copy full SHA for 4ab9f57
discoverDemo/gateway.go renamed to discoverDemo/api.go
@@ -6,7 +6,7 @@ import (
6
)
7
8
func getInfo(in struct{ Name string }, c *discover.Caller) (out struct{ FullName string }) {
9
- _ = c.Get("s1", "/"+in.Name+"/fullName").To(&out)
+ _ = c.Get("c1", "/"+in.Name+"/fullName").To(&out)
10
return
11
}
12
discoverDemo/controller.go
@@ -21,3 +21,5 @@ func main() {
21
s.Register(1, "/{name}/fullName", getFullNameController)
22
s.Start()
23
24
+
25
+//export discover_app="c1"
discoverDemo/service.go
@@ -11,3 +11,5 @@ func main() {
s.Register(1, "/{name}/fullName", getFullNameService)
13
14
15
+//export service_app="s1"
0 commit comments