uuid

package
v0.0.0-...-a4b6dd1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2019 License: GPL-3.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 GoUUID

type GoUUID struct{}

GoUUID is an implementation of `Manager` with the 'go.uuid' lib.

func NewGoUUID

func NewGoUUID() *GoUUID

NewGoUUID instantiate a new GoUUID.

func (*GoUUID) IsValid

func (t *GoUUID) IsValid(input string) bool

func (*GoUUID) New

func (t *GoUUID) New() string

New is an implementation of the `Manager` interface.

type Producer

type Producer interface {
	// New UUID.
	New() string
	IsValid(input string) bool
}

Producer generate new UUID.

type ProducerMock

type ProducerMock struct {
	mock.Mock
}

ProducerMock is a mock implementation of the `Manager` interface.

func (*ProducerMock) IsValid

func (t *ProducerMock) IsValid(input string) bool

func (*ProducerMock) New

func (t *ProducerMock) New() string

New is an implementation of the `Manager` interface.

Jump to

Keyboard shortcuts

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