uuid

package
v0.0.0-...-d108363 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

func Factory(loader func(v interface{}) error) (uniqueid.Driver, error)

Factory uuid driver factory

func V1

func V1() (string, error)

V1 generate unique id by uuid version1. Return generated id and any error if rasied.

Types

type UUID

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

UUID uuid driver

func NewUUID

func NewUUID() *UUID

NewUUID create new uuid driver

func (*UUID) GenerateID

func (u *UUID) GenerateID() (string, error)

GenerateID generate unique id. Return generated id and any error if rasied.

type UUIDConfig

type UUIDConfig struct {
	Version int
}

Jump to

Keyboard shortcuts

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