Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

gRPC 资源服务

服务端

cd config-srv
go run main.go

客户端

go run client/main.go

改动文件

切到config-srv/conf目录,改动micro.yml文件的任意值。

比如

micro:
  name: Micro
  version: 1.0.0
  hi: hello

改成

micro:
  name: Micro
  version: 1.0.0
  hi: I am fine

客户端会打印:

2019/04/28 10:57:15 Watch changes: {"hi":"I am fine","name":"Micro","version":"1.0.0"}