package
8.0.35+incompatible
Repository: https://github.com/machbase/neo-server.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
NewNode returns a new snowflake node that can be used to generate snowflake IDs.
ParseBase2 converts a Base2 string into a snowflake ID.
ParseBase32 parses a base32 []byte into a snowflake ID NOTE: There are many different base32 implementations so be careful when doing any inter operation.
ParseBase36 converts a Base36 string into a snowflake ID.
ParseBase58 parses a base58 []byte into a snowflake ID.
ParseBase64 converts a base64 string into a snowflake ID.
ParseBytes converts a byte slice into a snowflake ID.
ParseInt64 converts an int64 into a snowflake ID.
ParseIntBytes converts an array of bytes encoded as big endian integer as a snowflake ID.
ParseString converts a string into a snowflake ID.

# Variables

No description provided by the author
ErrInvalidBase32 is returned by ParseBase32 when given an invalid []byte.
ErrInvalidBase58 is returned by ParseBase58 when given an invalid []byte.
NodeBits holds the number of bits to use for Node Remember, you have a total 22 bits to share between Node/Step.
StepBits holds the number of bits to use for Step Remember, you have a total 22 bits to share between Node/Step.

# Structs

A JSONSyntaxError is returned from UnmarshalJSON if an invalid ID is provided.
A Node struct holds the basic information needed for a snowflake generator node.

# Type aliases

An ID is a custom type used for a snowflake ID.