uuid

package
v0.0.0-...-7b3ddb2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlakeUUID

func FlakeUUID() string

FlakeUUID Generates an UUID (similar to Flake IDs)

func TimeUUID

func TimeUUID() string

TimeUUID Generates a time-based UUID for tests.

Types

type Generator

type Generator interface {
	GetUUID() string
}

Generator is used to generate opaque unique strings.

func NewFlakeGenerator

func NewFlakeGenerator() Generator

NewFlakeGenerator create a flakeGenerator instance

func NewTimeGenerator

func NewTimeGenerator() Generator

Jump to

Keyboard shortcuts

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