通用包
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zhaoguoyu 6383ebbf48 sls日志新增子库参数 1 week ago
config/kubernetes 配置中心 1 year ago
encrypt/v1 添加对称加密和meta信息,补充readme 2 years ago
enum 环境变量枚举小写 1 year ago
glog es6trace 10 months ago
interceptor/v1 错误拦截新增全局 glog 记录服务错误 2 months ago
meta/v1 meta:user补充token 2 years ago
pagination page 1 year ago
pkg es 查询封装 新增 match_all 6 months ago
sign_oss_mid/v1 新增 oss 统一签名中间件 5 months ago
sls sls日志新增子库参数 1 week ago
tracer Revert "新增阿里云sls provider" 1 year ago
transport/v1 环境变量枚举小写 1 year ago
.gitignore gitignore 2 years ago
README.md http编解码和grpc拦截器 2 years ago
go.mod 新增 oss 统一签名中间件 2 5 months ago
go.sum 新增 oss 统一签名中间件 2 5 months ago

README.md

utils通用包

安装

  1. 设置私有仓库
go env -w GOPRIVATE=gitea.drugeyes.vip
  1. 设置git
git config --global url."ssh://gitea@gitea.drugeyes.vip".insteadOf "https://gitea.drugeyes.vip"
  1. 拉取对应版本
go get gitea.drugeyes.vip/pharnexbase/utils@v1.0.0

通用包

pagination

  • v1

    说明

transport

  • v1

    http请求和响应封装

    • request
      • 验证前端参数签名
    • response
      • ResponseEncoderWithEncrypt 正式服加密后端响应参数
      • bff原样返回server错误及自身业务错误,正式服其它错误统一返回InternalServerError

interceptor

  • v1

    grpc请求和响应拦截器

    • server
      • server原样返回业务错误,正式服其它错误统一返回InternalServerError
    • client
      • client默认转换server的所有error为kratos的error,方便bff原样返回

meta

  • v1

    跨服务meta信息设置和获取

    • user(基础用户信息)

encrypt

  • v1

    对称加密,目前包含:SHA1PRNG