tree: ecf5536aa17893a678fea7d4c5eb5e1a60f8c8d8 [path history] [tgz]
  1. go-client/
  2. go-server/
  3. proto/
  4. README.md
rpc/multi-protocols/README.md

Helloworld for dubbo-go

This example demonstrates the basic usage of dubbo-go as an RPC framework. Check Quick Start on our official website for detailed explanation.

Contents

  • server/main.go - is the main definition of the service, handler and rpc server
  • client/main.go - is the rpc client
  • proto - contains the protobuf definition of the API

How to run

Run server

go run ./server/main.go

test server work as expected:

curl \
    --header "Content-Type: application/json" \
    --data '{"name": "Dubbo"}' \
    http://localhost:20000/greet.GreetService/Greet

Run client

go run ./client/main.go