Skip to content

goboot is a scaffolding that can be used to open http, gRPC and custom game servers.一个可以用来开http,gRPC和自定义游戏服务器的脚手架。

License

trainking/goboot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GOBOOT

概述

GOBOOT 是一个可以用来开http,gRPC和自定义游戏服务器的Golang脚手架。

特性

  • 高性能分布式服务器开发
  • 支持gRPC开发微服务
  • 支持http的API开发
  • 支持游戏服务器网关开发,支持tcpkcpwebsocket协议
  • 提供了bootctl作为,项目管理和代码生成工具

快速开始

使用bootctl

goboot推荐使用bootctl命令行工具,来生成代码结构和代码,方便在多人开发时,控制编码规范。具体参考

一个规范的目录结构如下:

├─bin                             # build之后的发布包
├─cmd                             # 自定义的命令行工具
├─configs                         # 所有的配置文件
├─docs                            # 项目相关文档
|  ├─devel                        # 开发相关文档,如接口描述
│  └─guide                        # 教程相关文档
├─example                         # 一些小示例,或测试demo
├─internal                        # 业务代码
│  ├─api                          # 应用程序接口,http和game
│  │  ├─gameserver
│  │  │  └─gateway
│  │  └─helloworld
│  │      └─user
│  ├─pb                           # protbuf生成库
│  │  └─proto                     # .proto文件
│  └─service                      # 服务
│      └─user
│          ├─client
│          └─server
├─logs                            # 日志
│  └─Gateway
└─pkg                             # 公共包

详情请查阅参考指南

关联项目

打赏作者

打赏

About

goboot is a scaffolding that can be used to open http, gRPC and custom game servers.一个可以用来开http,gRPC和自定义游戏服务器的脚手架。

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published