snowflakes

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2017 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRawFlake added in v0.1.4

func NewRawFlake() snowflake.ID

NewRawFlake returns a snowflake.ID type, useful when a encoded string-flake is not sufficient and, for example, a uint64 or []byte is needed.

func NewSnowflake

func NewSnowflake() (string, error)

NewSnowflake returns a new unique ID based on a timestamp or an error if there is a problem during encoding

Note that these Snowflakes are not cryptographically safe, they are not encrypted, just obfuscated.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL