package
0.0.4
Repository: https://github.com/actorbuf/iota.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
ConnInit 初始化mongo.
CustomJaegerHook 自定义jaegerHook.
No description provided by the author
No description provided by the author
RegisterTimestampCodec 注册一个针对 timestamppb.Timestamp 结构的 bson文档解析器 将 mongodb 中 bson 字段的 Date(Go中的 time.Time ) 对象解析成 timestamppb.Timestamp.
SetMapOmitInsertField 对于一个 update-bson-map 忽略$set中的$setOnInsert字段 需要传递一个map的指针 确保数据可写 否则PANIC $set支持map和struct 其他结构体将PANIC $setOnInsert只支持map 其他结构体将PANIC 只对包含$set和$setOnInsert的map生效 若$set或者$setOnInsert缺失 将PANIC.
SliceStruct2MapOmitEmpty 结构体数组转map数组并忽略空字段 注意 子元素非struct将被忽略.
Struct2MapOmitEmpty 结构体转map并忽略空字段 用 字段名 做Key 注意 只忽略顶层字段 obj非struct结构将PANIC.
Struct2MapOmitEmptyWithBsonTag 结构体转map并忽略空字段 按照 bson 标签做key obj 需要是一个指针 注意 只忽略顶层字段 obj非struct结构将PANIC.
Struct2MapOmitEmptyWithJsonTag 结构体转map并忽略空字段 按照 json 标签做key 注意 只忽略顶层字段 obj非struct结构将PANIC.
Struct2MapWithBsonTag 结构体转map 用 bson字段名 做Key 注意 obj非struct结构将PANIC.
Struct2MapWithJsonTag 结构体转map 用 json字段名 做Key 注意 obj非struct结构将PANIC.

# Constants

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

# Variables

No description provided by the author

# Structs

No description provided by the author
No description provided by the author
Config MongoDB连接配置.
No description provided by the author
No description provided by the author
OpTrace 记录操作的执行过程.
TimestampCodec 对 timestamppb.Timestamp <-> time.Time 进行互向转换 time.Time 在bson中被转换为 Date 对象.

# Type aliases

HandlerFunc 执行中间件.
OpType 操作类型.