Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UidGenerator ¶
type UidGenerator struct {
// contains filtered or unexported fields
}
RethinkDB generates UUIDs as primary keys. Using snowflake-generated uint64 instead.
func (*UidGenerator) Get ¶
func (uid *UidGenerator) Get() Uid
Get generates a unique weakly encryped id it so ids are random-looking.
func (*UidGenerator) GetStr ¶
func (uid *UidGenerator) GetStr() string
GetStr generates a unique id then returns it as base64-encrypted string.
Click to show internal directories.
Click to hide internal directories.