Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdGenerator ¶
type IdGenerator struct {
// contains filtered or unexported fields
}
func NewIdGenerator ¶
func NewIdGenerator(machineNodeId int64) *IdGenerator
func (*IdGenerator) SnowflakeId ¶
func (thiz *IdGenerator) SnowflakeId() int64
func (*IdGenerator) UUID ¶
func (thiz *IdGenerator) UUID() string
Click to show internal directories.
Click to hide internal directories.