//
pkg.gl
Category
github.com/weirwei/ikit
igoroutine
package
0.1.8
Repository:
https://github.com/weirwei/ikit.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
3
Dependents
1
Files
151 SLOC
#
Functions
NewDivide
NewDivide new a divide.
NewMulti
NewMulti new a Multi with num.
OptPage
OptPage set page.
OptPageSize
OptPageSize set page size.
OptTotal
OptTotal set total.
Safe
Safe mode, recover the panic, prevent crash the server.
#
Structs
Divide
Divide 分批操作,使用场景为:需要获取下游全量数据,而下游必传分页参数 multi 并发方法,用于并发请求 page 当前分页,默认为1 pageSize 页面大小,默认为100.
Multi
Multi allows start num of goroutines and save err msg.
WaitGroup
WaitGroup contains sync.WaitGroup.
#
Type aliases
DivideOption
No description provided by the author