Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
github.com/gnimli/go-web-mini
Gin
一个类似于martini但拥有更好性能的API框架, 由于使用了httprouter, 速度提高了近40倍MySQL
采用的是MySql数据库Jwt
使用JWT轻量级认证, 并提供活跃用户Token刷新功能Casbin
Casbin是一个强大的、高效的开源访问控制框架,其权限管理机制支持多种访问控制模型Gorm
采用Gorm 2.0版本开发, 包含一对多、多对多、事务等操作Validator
使用validator v10做参数校验, 严密校验前端传入参数Lumberjack
设置日志文件大小、保存数量、保存时间和压缩等Viper
Go应用程序的完整配置解决方案, 支持配置热更新GoFunk
包含大量的Slice操作方法的工具包AuthMiddleware
权限认证中间件 -- 处理登录、登出、无状态token校验RateLimitMiddleware
基于令牌桶的限流中间件 -- 限制用户的请求次数OperationLogMiddleware
操作日志中间件 -- 记录所有用户操作CORSMiddleware
-- 跨域中间件 -- 解决跨域问题CasbinMiddleware
访问控制中间件 -- 基于Casbin RBAC, 精细控制接口访问
├─common # casbin mysql zap validator 等公共资源
├─config # viper读取配置
├─controller # controller层,响应路由请求的方法
├─dto # 返回给前端的数据结构
├─middleware # 中间件
├─model # 结构体模型
├─repository # 数据库操作
├─response # 常用返回封装,如Success、Fail
├─routes # 所有路由
├─util # 工具方法
└─vo # 接收前端请求的数据结构
go-web-mini-ui
https://github.com/gnimli/go-web-mini-ui.git
Copyright (c) 2021 gnimli
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.