uuid

package
v0.0.0-...-fdc8e6b Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UUIDEntry

type UUIDEntry struct {
	UUID      string
	Timestamp tinytime.TinyTime
	Status    status.Status
}

func DecodeUUIDEntry

func DecodeUUIDEntry(buf []byte) UUIDEntry

func NewUUIDEntry

func NewUUIDEntry(logger log.Logger, username string, uuid string, err error) UUIDEntry

func (UUIDEntry) Encode

func (u UUIDEntry) Encode() []byte

func (UUIDEntry) IsFresh

func (u UUIDEntry) IsFresh() bool

Todo: Does it make sense to check freshness of a Username:UUID mapping? It's only problematic when a Username switches between people If not... why even track Timestamp? Maybe debug info / headers / insight?

func (UUIDEntry) IsValid

func (u UUIDEntry) IsValid() bool

func (UUIDEntry) String

func (u UUIDEntry) String() string

func (UUIDEntry) TTL

func (u UUIDEntry) TTL() time.Duration

Jump to

Keyboard shortcuts

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