service-layout

module
v0.0.0-...-504ac23 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0

README

service layout

启动服务;启动请检查配置文件;如果使用配置中心,请跳过执行,先阅读服务配置部分


# 查看帮助
make help

# 运行服务
make run-service
# or
make run-all-in-one

# 测试服务
make testing-service
# or
make testing-all-in-one

服务配置

示例如下:

# app 程序
app:
  server_name: xxx-service
  # 配置方式;值:local、consul、etcd
  config_method: consul

如果app.config_method配置是使用配置中心(consul、etcd、...),首先把配置写入配置中心:

# 执行
make store-configuration
# or
#* `conf`: 启动读取配置
#* `source_dir`: 被存储的配置文件所在文件夹
#* `store_dir`: 存储到配置中心位置
go run ./app/service-layout/cmd/store-configuration/... -conf=./app/service-layout/configs \
-source_dir=./app/service-layout/configs \
-store_dir=go-micro-saas/service-layout/develop/v1.0.0

go run ./app/service-layout/cmd/store-configuration/... -conf=./app/service-layout/configs \
-source_dir=./app/uuid-service/configs \
-store_dir=go-micro-saas/uuid-service/develop/v1.0.0

文档

生成文档:make protoc-api-protobuf

Jump to

Keyboard shortcuts

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