uuid

package
Version: v0.0.0-...-de75733 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2018 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)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL