uuid

package
v0.0.0-...-270e5d0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: MIT Imports: 7 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ReqCh  chan Request
	SaveCh chan Key
	RespCh chan UID
)

Functions

func PowerOn

func PowerOn(ctx context.Context, wp *sync.WaitGroup, wgEnd *sync.WaitGroup)

Types

type Key

type Key struct {
	SName ndAlias
	UID   UID
}

type Request

type Request struct {
	SName        ndAlias
	SuppliedID   string // (optional) supplied PKEY ID. Not implemented as code presumes PKEY is a UUID.// TODO:  Need more investigation to implement
	SuppliedUUID UID    // (optional) supplied UUID of node
	RespCh       chan UID
}

type UID

type UID []byte

func DecodeBase64

func DecodeBase64(ub64 UIDb64) UID

DecodeBase64 converts 24 bit base64 encoded string to binary (UID)

func FromString

func FromString(u string) UID

FromString converts a UID in long string format to binary

func MakeUID

func MakeUID() (UID, error)

func SendEOB

func SendEOB() UID

func SendEOD

func SendEOD() UID

func (UID) Base64

func (u UID) Base64() UIDb64

Base64 converts UID binary to base64 string

func (*UID) EOB

func (u *UID) EOB() bool

func (*UID) EOD

func (u *UID) EOD() bool

func (UID) EncodeBase64

func (uid UID) EncodeBase64() UIDb64

EncodeBase64 aka Base64()

func (UID) String

func (u UID) String() string

string - from UID binary to long string ie.format "6ba7b810-9dad-11d1-80b4-00c04fd430c8",

func (UID) ToString

func (u UID) ToString() UIDstring

func (UID) ToUIDString

func (u UID) ToUIDString() UIDstring

type UIDB

type UIDB []byte

type UIDb64

type UIDb64 string

func (UIDb64) Decode

func (u UIDb64) Decode() UID

type UIDstring

type UIDstring string

Jump to

Keyboard shortcuts

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