Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SegmentWorker ¶ added in v0.2.0
type SegmentWorker struct {
// contains filtered or unexported fields
}
func NewSegmentWorker ¶ added in v0.2.0
func (*SegmentWorker) NextID ¶ added in v0.2.0
func (w *SegmentWorker) NextID() (int64, error)
func (*SegmentWorker) ProduceID ¶ added in v0.2.0
func (w *SegmentWorker) ProduceID()
type SnowflakeWorker ¶ added in v0.2.0
type SnowflakeWorker struct {
// contains filtered or unexported fields
}
func NewWorker ¶ added in v0.2.0
func NewWorker() (*SnowflakeWorker, error)
func (*SnowflakeWorker) NextID ¶ added in v0.2.0
func (w *SnowflakeWorker) NextID() (int64, error)
Click to show internal directories.
Click to hide internal directories.