package
1.0.3
Repository: https://github.com/cloudapex/ulib.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
CtxRemoteIpGet get remote_ip from Context.
CtxRemoteIpSet set remote_ip to Context (业务层设置).
CtxRequestGet get request from Context.
CtxRequestSet set request to Context (系统内部或中间件设置).
CtxResponseGet get response from Context.
CtxGetResponse set response to Context (系统内部或中间件设置).
CtxUserIdGet 获取user_id.
CtxUserIdSet 设置user_id (业务层设置).
CtxUserNameGet 获取user_name.
CtxUserNameSet 设置user_name (业务层设置).
No description provided by the author
安装控制器.
No description provided by the author
添加观察者(当调用API时回调).
注册路由组对象.
No description provided by the author
绑定器返回错误 https://github.com/go-playground/validator/blob/master/_examples/simple/main.go.
通用错误with数据.
通用错误处理.
文件返回.
功能逻辑错误.
数据库操作失败.
成功返回.
各种参数错误.
缓存库操作失败.
数据库操作失败.
API服务.
设置gin运行模式.

# Constants

编码加密错误.
业务扩展起始编号.
逻辑错误.
数据库错误.
参数错误.
缓存库错误.
http.StatusOK.
系统错误.
以JSON数据格式返回.
以xml数据格式返回.
以Protobuf数据格式返回.
以xml数据格式返回.
以yaml数据格式返回.

# Variables

默认htp控制器.

# Structs

> 配置项.
-------- GinLogger.
-------- GinRecover.
> GroupRouter.
No description provided by the author
Response 基础序列化器.

# Interfaces

> 控制器接口.
> 路由接口.
> render接口.
API服务接口(基本).
API服务接口+(渲染模式).

# Type aliases

> 错误码类型.
> 路由服务渲染模式.
> API注册观察回调函数.