1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-18 08:26:38 +02:00
go-micro/examples/http/README.md

38 lines
521 B
Markdown
Raw Normal View History

# http server and http client demo
An example http application
## Contents
- **srv** - a http server as server of go-mirco service
- **cli** - a http client that call http server
- **rpcli** - a http client that call rpc server
## Run Service
Start http server
```shell
go run srv/main.go
```
## Client
Call http client
```shell
go run cli/main.go
```
## Run rpc Service
Start greeter service
```shell
go run ../greeter/srv/main.go
```
## Client
http client call rpc service
```shell
go run rpccli/main.go
```