1 Star 0 Fork 0

小鱼儿小董子/dongli-kit

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

moke-kit

Go Report Card Go Reference Release

English | 中文

什么是 moke-kit?

moke-kit 是一个用于构建微服务/单体应用的基础框架。可以按照单体应用开发,生产环境部署为微服务模式。像玩LEGO积木一样,你可以按需灵活拼接不同类型的服务。

架构

moke-kit

特性

  • 使用 uber/fx 实现IOC(依赖注入控制反转),可以按需组装不同类型服务。
  • 内置TLS,mTLS,快速构建Zero Trust安全模型
  • 内置基于Token的认证,支持JWT token。
  • 内置中间件(rate limit, open telemetry, auth middleware,logging, panic recovery等)。
  • 内置Cache-Aside模式数据缓存机制。
  • 内置Compare-and-swap保证数据库操作的一致性。
  • 内置交互式命令行客户端,方便独立测试服务接口。
  • 基于buf一键生成proto, grpc, gateway, swagger和客户端的协议文件。

内置组件

快速开始

  • 安装 gonew:
   go install golang.org/x/tools/cmd/gonew@latest
  • 创建自己的项目:
   gonew github.com/gstones/moke-layout your.domain/myprog
MIT License Copyright (c) 2023 GStones Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
Go
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

4天前推送了新的 v0.0.37 标签
4天前推送了新的提交到 main 分支,348a666...68c2d87
5天前推送了新的 v0.0.36 标签
5天前推送了新的提交到 main 分支,4b7197b...348a666
5天前推送了新的 v0.0.35 标签
加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wanjimao/dongli-kit.git
git@gitee.com:wanjimao/dongli-kit.git
wanjimao
dongli-kit
dongli-kit
main

搜索帮助