uid

package
v0.0.0-...-211a84a Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UID

type UID struct {
	// contains filtered or unexported fields
}

func NewUID

func NewUID(value int) *UID

func (*UID) MarshalJSON

func (u *UID) MarshalJSON() ([]byte, error)

func (*UID) UnmarshalJSON

func (u *UID) UnmarshalJSON(data []byte) error

func (*UID) Value

func (u *UID) Value() int

type UID_Generator

type UID_Generator struct {
	// contains filtered or unexported fields
}

func New_UID_Generator

func New_UID_Generator() *UID_Generator

func (*UID_Generator) Next

func (g *UID_Generator) Next() *UID

func (*UID_Generator) Recycle

func (g *UID_Generator) Recycle(uid *UID)

Jump to

Keyboard shortcuts

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