service

command
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

README

Service

这是创建一个 micro service 的例子.

目录

  • main.go - 服务的定义, 包括handler和客户端
  • proto - protobuf 的定义文件
  • gen_micro_proto.sh - 根据proto目录下存放的.proto文件生成对应的go-micro文件

运行

Run the service

go run main.go

Run the client

go run main.go --run_client

输出 Hello John

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package greeter is a generated protocol buffer package.
Package greeter is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL