uuid

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

README

UUID identity provider

The UUID identity provider generates a random, universally unique identifier (UUID), unique for all practical purposes.

Documentation

Overview

Package uuid contains UUID generator.

Package uuid provides a UUID identity provider.

Index

Constants

View Source
const Prefix = "123e4567-e89b-12d3-a456-"

Prefix represents the prefix used to generate UUID mocks.

Variables

View Source
var ErrGeneratingID = errors.New("failed to generate uuid")

ErrGeneratingID indicates error in generating UUID.

Functions

func New

func New() magistrala.IDProvider

New instantiates a UUID provider.

func NewMock

func NewMock() magistrala.IDProvider

NewMock creates "mirror" uuid provider, i.e. generated token will hold value provided by the caller.

Types

This section is empty.

Jump to

Keyboard shortcuts

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