uuid

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 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() uuid.UUID
}

Provider abstracts the UUID generation

func NewUUIDProvider

func NewUUIDProvider() Provider

NewUUIDProvider constructor that returns default UUID generation

Jump to

Keyboard shortcuts

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