id

package
v0.0.0-...-9b4e82f Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: MIT Imports: 3 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVal

func GetVal(uuid string) (interface{}, bool)

func RegisterUuid

func RegisterUuid(uuid string, val interface{})

func RemoveUuid

func RemoveUuid(uuid string)

func SerialUuid

func SerialUuid() string

* this is one of the more controversial desgin choices I made here is the single souce of truth for assigns uuids to objects it keeps a map of all uuids and a pointer to that uuid so given a uuid, its type can be found The problem here is uuids don't play well with large scale databases, and it would be better just to have the database be the one assigning uuid

Types

type Identifiable

type Identifiable interface {
	GetId() string
	GetType() string
}

* Identifiable are used throughout the design, its just something that can be Identified by type and uuid

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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