uuid

package
v0.0.0-...-558f2c6 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: ISC Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockProvider

type MockProvider struct {
	mock.Mock
}

MockProvider mocks uuid provider

func (MockProvider) NewUUID

func (m MockProvider) NewUUID() uuid.UUID

NewUUID returns the mocked uuid

type Provider

type Provider interface {
	NewUUID() string
}

Provider provides interface for abstracting UUID generation.

func NewUUIDProvider

func NewUUIDProvider() Provider

NewUUIDProvider constructor that returns the default UUID generator.

Jump to

Keyboard shortcuts

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