# Functions
NewBool creates a Bool.
NewDuration creates a Duration.
No description provided by the author
NewFloat64 creates a Float64.
NewInt32 creates an Int32.
NewInt64 creates an Int64.
NewUint32 creates a Uint32.
NewUint64 creates a Uint64.
*
* 实例化一个工作节点
* workerId 为当前节点的id
* 注意,worker全局应只有一个实例,不要生成id时临时创建,并发会冲突
*/.
RandString 生成随机字符串.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Bool is an atomic Boolean.
Duration is an atomic wrapper around time.Duration https://godoc.org/time#Duration.
Float64 is an atomic wrapper around float64.
Int32 is an atomic wrapper around an int32.
Int64 is an atomic wrapper around an int64.
Uint32 is an atomic wrapper around an uint32.
Uint64 is an atomic wrapper around a uint64.
Value shadows the type of the same name from sync/atomic https://godoc.org/sync/atomic#Value.
定义一个woker工作节点所需要的基本参数.
# Type aliases
No description provided by the author