Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDWorker ¶ added in v0.3.11
type IDWorker struct {
// contains filtered or unexported fields
}
func NewIDWorker ¶ added in v0.3.11
func NewIDWorkerWith ¶ added in v0.3.11
type SnowflakeID ¶
type SnowflakeID struct {
// contains filtered or unexported fields
}
func (*SnowflakeID) Generate ¶
func (s *SnowflakeID) Generate() string
func (*SnowflakeID) Init ¶
func (s *SnowflakeID) Init() error
func (*SnowflakeID) New ¶
func (s *SnowflakeID) New(node int64)
Click to show internal directories.
Click to hide internal directories.