id

package
v0.0.0-...-1a5deed Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID uuid.UUID

ID is a UUID used to trace a batch of work which is being processed.

func FromInterface

func FromInterface(idInterface interface{}) (id ID, err error)

FromInterface parses the uuid from an interface type

func FromString

func FromString(idString string) (id ID, err error)

FromString parses a string into a transaction id

func New

func New() ID

New generates a new UUID

func (ID) String

func (id ID) String() (result string)

String returns the transaction id as a string

Jump to

Keyboard shortcuts

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