package
1.0.2
Repository: https://github.com/pangj520/hello.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
统一处理响应输入: ctx: 请求上下文 opt: 内部返回码 err: 错误 resp: 响应参数,不需要包含oprResult与msg字段.
对加密密码进行解密.
检查产品英文名,由字母组成,不允许中文、数字、横杠与特殊字符等.
错误返回.
No description provided by the author
No description provided by the author
获取原始参数数据[]byte.
将原始参数数据反序列化为指定类型.
No description provided by the author
GetResponseCallback 获取当前响应回调.
获取校验通过的参数封装的struct.
镜像路径.
No description provided by the author
No description provided by the author
k8s标签.
k8s资源名称.
k8s cpu memory值.
记录请求信息,绑定请求参数,校验请求参数,不支持文件上传 position: 参数位置,为空则表示无请求参数 validateStruct: 绑定请求参数的结构体,为空表示不进行校验.
检查是否为非负整数.
No description provided by the author
No description provided by the author
服务注册.
RegisterResponseCallback 注册响应回调.
用法:validate:"req_with={FIELD}:{FIELD_PARAM}".
父级不为nil,此字段必选,使用时,如果后面还有其他验证,后面需带上omitempty.
返回响应.
服务健康检查.
iris app 全局处理函数.
No description provided by the author
开启一个tracer span,并从iris.Context提取要跟随的span, 如果从iris.Context中未找到则创建一个新的span.
开启一个tracer span,并从iris.Context提取父级span, 如果从iris.Context中未找到则创建一个新的span.
成功返回.
时间字符串验证.
No description provided by the author
只允许字母、数字及下划线组合, 不能数字开头,长度不大于30.
使用所有全局处理函数.
检查用户名,由3-16个数字、字母、下划线组成,不允许中文与特殊字符.
No description provided by the author
配置变量值校验,不允许含有单引号、双引号、反斜线.
检查产品英文名,由字母、下划线,横杠组成,不允许中文与特殊字符.
No description provided by the author

# Constants

参数位置在请求体.
参数在hetp header上.
无.
参数位置在URL上,格式如:/get/1.
参数在URL上,格式如:?a=1&b=2.

# Variables

服务异常统一处理.
捕获异常.
No description provided by the author
链路追踪器.
将内部返回码转为外部返回码.
No description provided by the author
启用参数验证器.

# Structs

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

# Interfaces

空的实例.

# Type aliases

iris app 全局处理函数.
No description provided by the author
No description provided by the author