Documentation ¶
Overview ¶
Package snowflake is copied directly from influxdb/pkg/snowflake to generate a universally unique uint64.
pkg/snowflake cannot be imported because there is no way to import github.com/influxdata/influxdb/influxql@1.1.5 for this package nor github.com/influxdata/influxql@3684fd4f35857877a7a9659e1dfea8bce026d08c for other chronograf specific logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator defines a snowflake generator structure.
func (*Generator) AppendNext ¶
AppendNext appends the byte slice of a unique uint64 to s.
func (*Generator) NextString ¶
NextString generates and returns a universally unique uint64 as a string.
Click to show internal directories.
Click to hide internal directories.