gRPC/

directory
v0.0.0-...-908d554 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: Apache-2.0

README

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"}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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