gin+gRPC+etcd study notes

gin+gRPC+etcd study notes

The structure of the whole project:
insert image description here

go get github.com/spf13/viper

go get -u gorm.io/gorm
go get -u gorm.io/driver/mysql

go get go.etcd.io/etcd/client/v3
go get go.etcd.io/etcd/api/v3/mvccpb

go get github.com/gin-gonic/gin

1. User module (etcd service registration)

insert image description here

1. config.yaml (configuration file related to parameters):

server:
  domain: user
  version: 

Guess you like

Origin blog.csdn.net/weixin_46878177/article/details/130187019