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

Ftr: dubbogo-cli-v2 support get interfaces and methods form remote #29

Merged

Conversation

cjphaha
Copy link
Member

@cjphaha cjphaha commented Dec 12, 2021

新版本 dubbogo-cli-v2 新功能如下

  1. 支持从注册中心中获取服务列表
  2. 支持通过 json 文件调用 dubbo-go 服务
  3. 支持创建一个 dubbo-go sample
    (起名 v2 是由于改动比较大,后续会将 dubbogo-cli 的功能移植过来)

获取服务列表

./dubbogo-cli-v2 show --r zookeeper --h 127.0.0.1:2181

输出如下

interface: org.apache.dubbo.game.basketballService
methods: []
interface: com.apache.dubbo.sample.basic.IGreeter
methods: []
interface: com.dubbogo.pixiu.UserService
methods: [CreateUser,GetUserByCode,GetUserByName,GetUserByNameAndAge,GetUserTimeout,UpdateUser,UpdateUserByName]
interface: org.apache.dubbo.gate.basketballService
methods: []
interface: org.apache.dubbo.game.basketballService
methods: []
interface: com.apache.dubbo.sample.basic.IGreeter
methods: []
interface: com.dubbogo.pixiu.UserService
methods: [CreateUser,GetUserByCode,GetUserByName,GetUserByNameAndAge,GetUserTimeout,UpdateUser,UpdateUserByName]
interface: org.apache.dubbo.gate.basketballService
methods: []

发起服务调用

使用方式和原逻辑一致,可参考 README.md

创建 demo

命令如下

./dubbogo-cli-v2 new --path=./demo

会在指定的目录下创建一个 demo
image

@jasondeng1997
Copy link
Contributor

nb

"log"
)

type MetaData interface {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这些 public 函数,如果不愿意加注释,就用 “// nolint" 替换下

@LaurenceLiZhixin LaurenceLiZhixin merged commit 90eb50d into dubbogo:master Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants