uuid

package
v0.0.0-...-620f6c9 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GM_ID      = "GameManager"
	ROOM_ID    = "Room"
	USER_ID    = "User"
	ENTITY_ID  = "Entity"
	EQUIP_ID   = "Equipment"
	CHA_ID     = "Character"
	SESSION_ID = "Session"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type UID

type UID struct {
	Gen         map[string]*goSnowFlake.IdWorker
	WorkersName map[int64]string
}
var Uid *UID = &UID{}

func (*UID) NewId

func (u *UID) NewId(worker string) (id int64, err error)

func (*UID) ParseId

func (u *UID) ParseId(id int64) (worker string, ts int64)

func (*UID) RegisterWorker

func (u *UID) RegisterWorker(workers ...string)

Jump to

Keyboard shortcuts

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