Versions in this module Expand all Collapse all v0 v0.0.2 Feb 9, 2022 v0.0.1 Feb 8, 2022 Changes in this version + var LocalHostIP = "" + var LocalHostIpArr []string + var LocalHostIpTraceId = "" + var ScreenHeight int + var ScreenWidth int + var SequenceIDGenerator SnowFlakeIdGenerator + func FakeTraceId() (traceId string) + type SnowFlakeIdGenerator struct + func NewIDGenerator() *SnowFlakeIdGenerator + func (sfg *SnowFlakeIdGenerator) Init() (*SnowFlakeIdGenerator, error) + func (sfg *SnowFlakeIdGenerator) NextId() (int64, error) + func (sfg *SnowFlakeIdGenerator) Parse(id int64) (int64, int64, int64, error) + func (sfg *SnowFlakeIdGenerator) SetSequenceBitSize(n uint8) *SnowFlakeIdGenerator + func (sfg *SnowFlakeIdGenerator) SetTimeBitSize(n uint8) *SnowFlakeIdGenerator + func (sfg *SnowFlakeIdGenerator) SetWorkerId(w int64) *SnowFlakeIdGenerator + func (sfg *SnowFlakeIdGenerator) SetWorkerIdBitSize(n uint8) *SnowFlakeIdGenerator