MCPcopy Index your code

hub / github.com/bwmarrin/snowflake / functions

Functions50 in github.com/bwmarrin/snowflake

↓ 21 callersFunctionNewNode
NewNode returns a new snowflake node that can be used to generate snowflake IDs
snowflake.go:100
↓ 20 callersMethodGenerate
Generate creates and returns a unique snowflake ID To help guarantee uniqueness - Make sure your system is keeping accurate system time - Make sure yo
snowflake.go:135
↓ 6 callersMethodInt64
Int64 returns an int64 of the snowflake ID
snowflake.go:165
↓ 4 callersMethodBase32
Base32 uses the z-base-32 character set but encodes and decodes similar to base58, allowing it to create an even smaller result string. NOTE: There ar
snowflake.go:201
↓ 4 callersMethodBase58
Base58 returns a base58 string of the snowflake ID
snowflake.go:250
↓ 4 callersFunctionParseBytes
ParseBytes converts a byte slice into a snowflake ID
snowflake.go:306
↓ 3 callersMethodBytes
Bytes returns a byte slice of the snowflake ID
snowflake.go:301
↓ 3 callersMethodIntBytes
IntBytes returns an array of bytes of the snowflake ID, encoded as a big endian integer.
snowflake.go:313
↓ 3 callersMethodMarshalJSON
MarshalJSON returns a json byte array string of the snowflake ID.
snowflake.go:344
↓ 3 callersFunctionParseBase2
ParseBase2 converts a Base2 string into a snowflake ID
snowflake.go:192
↓ 3 callersFunctionParseBase36
ParseBase36 converts a Base36 string into a snowflake ID
snowflake.go:244
↓ 3 callersFunctionParseBase64
ParseBase64 converts a base64 string into a snowflake ID
snowflake.go:291
↓ 3 callersFunctionParseString
ParseString converts a string into a snowflake ID
snowflake.go:180
↓ 3 callersMethodString
String returns a string of the snowflake ID
snowflake.go:175
↓ 2 callersMethodBase2
Base2 returns a string base2 of the snowflake ID
snowflake.go:187
↓ 2 callersMethodBase36
Base36 returns a base36 string of the snowflake ID
snowflake.go:239
↓ 2 callersMethodBase64
Base64 returns a base64 string of the snowflake ID
snowflake.go:286
↓ 2 callersFunctionParseBase32
ParseBase32 parses a base32 []byte into a snowflake ID NOTE: There are many different base32 implementations so becareful when doing any interoperatio
snowflake.go:224
↓ 2 callersFunctionParseBase58
ParseBase58 parses a base58 []byte into a snowflake ID
snowflake.go:271
↓ 2 callersFunctionParseInt64
ParseInt64 converts an int64 into a snowflake ID
snowflake.go:170
↓ 2 callersFunctionParseIntBytes
ParseIntBytes converts an array of bytes encoded as big endian integer as a snowflake ID
snowflake.go:321
↓ 2 callersMethodUnmarshalJSON
UnmarshalJSON converts a json byte array of a snowflake ID into an ID type.
snowflake.go:353
FunctionBenchmarkBase32
(b *testing.B)
snowflake_test.go:374
FunctionBenchmarkBase58
(b *testing.B)
snowflake_test.go:399
FunctionBenchmarkGenerate
(b *testing.B)
snowflake_test.go:411
FunctionBenchmarkGenerateMaxSequence
(b *testing.B)
snowflake_test.go:423
FunctionBenchmarkMarshal
(b *testing.B)
snowflake_test.go:452
FunctionBenchmarkParseBase32
**************************************************************************** Benchmark Methods
snowflake_test.go:361
FunctionBenchmarkParseBase58
(b *testing.B)
snowflake_test.go:386
FunctionBenchmarkUnmarshal
(b *testing.B)
snowflake_test.go:437
MethodError
()
snowflake.go:47
MethodNode
Node returns an int64 of the snowflake ID node number DEPRECATED: the below function will be removed in a future release.
snowflake.go:333
MethodStep
Step returns an int64 of the snowflake step (or sequence) number DEPRECATED: the below function will be removed in a future release.
snowflake.go:339
FunctionTestBase2
(t *testing.T)
snowflake_test.go:124
FunctionTestBase32
(t *testing.T)
snowflake_test.go:154
FunctionTestBase36
(t *testing.T)
snowflake_test.go:175
FunctionTestBase58
(t *testing.T)
snowflake_test.go:205
FunctionTestBase64
(t *testing.T)
snowflake_test.go:226
FunctionTestBytes
(t *testing.T)
snowflake_test.go:256
FunctionTestGenerateDuplicateID
****************************************************************************** General Test funcs lazy check if Generate will create duplicate IDs wou
snowflake_test.go:14
FunctionTestInt64
(t *testing.T)
snowflake_test.go:71
FunctionTestIntBytes
(t *testing.T)
snowflake_test.go:286
FunctionTestMarshalJSON
****************************************************************************** Marshall Test Methods
snowflake_test.go:312
FunctionTestMarshalsIntBytes
(t *testing.T)
snowflake_test.go:326
FunctionTestPrintAll
****************************************************************************** Converters/Parsers Test funcs We should have funcs here to test convers
snowflake_test.go:51
FunctionTestRace
I feel like there's probably a better way
snowflake_test.go:29
FunctionTestString
(t *testing.T)
snowflake_test.go:93
FunctionTestUnmarshalJSON
(t *testing.T)
snowflake_test.go:334
MethodTime
Time returns an int64 unix timestamp in milliseconds of the snowflake ID time DEPRECATED: the below function will be removed in a future release.
snowflake.go:327
Functioninit
Create maps for decoding Base58/Base32. This speeds up the process tremendously.
snowflake.go:59