rpcx-service

command module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: MIT Imports: 3 Imported by: 0

README

rpcx-service

一个基于RPCX(Go语言的快、易用却功能强大RPC服务治理框架)搭建的RPC服务框架。

特性:简单易用、超快高效、功能强大、服务发现、服务治理、服务分层、版本控制、路由标签注册。

框架目录介绍

  • bin 脚本目录
  • define 变量或结构体定义目录
  • env 环境定义配置目录
  • logic 逻辑层目录
  • model 数据层目录
  • restful 服务路由注册目录
  • service 服务层目录
  • table 数据表层目录
  • vendor 项目依赖目录
  • go.mod 包版本定义
  • main.go 程序入口
  • service.json 服务配置文件

服务如何跑起来?

  1. 执行 ./bin/bootstrap.sh 命令,下载部署命令工具;
  2. 执行 ./bin/produce.sh help 命令,查看部署命令工具帮助文档,执行对应子命令,会有相应信息输出:
    • 2.1. 执行 ./bin/produce.sh sync 命令,同步服务vendor资源
    • 2.2. 执行 ./bin/produce.sh build local 命令,可以编译当前代码生成服务程序
    • 2.3. 执行 ./bin/produce.sh reload 命令,实现平滑重启服务
    • 2.4. 执行 ./bin/produce.sh status 命令,可以查看服务状态
    • 2.5. 执行 ./bin/produce.sh quit 命令,可以平滑停止当前服务

参考文献

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
service

Jump to

Keyboard shortcuts

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