uuid

package
v0.0.0-...-83625b3 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Nil = UUID{}

Functions

func Equal

func Equal(u1, u2 UUID) bool

func ParseAndVerify

func ParseAndVerify(key []byte, input string) bool

Parses and verifies a signed UUID.

The key must be 64 bytes long.

Types

type UUID

type UUID [16]byte

func FromByteOrNil

func FromByteOrNil(input []byte) UUID

func FromBytes

func FromBytes(input []byte) (UUID, error)

func FromString

func FromString(input string) (UUID, error)

func FromStringOrNil

func FromStringOrNil(input string) UUID

func Generate

func Generate(key []byte) UUID

Generates a signed UUID.

The key must be 64 bytes long.

func (UUID) Bytes

func (u UUID) Bytes() []byte

func (UUID) IsNil

func (u UUID) IsNil() bool

func (UUID) MarshalBinary

func (u UUID) MarshalBinary() ([]byte, error)

func (UUID) MarshalText

func (u UUID) MarshalText() ([]byte, error)

func (*UUID) Scan

func (u *UUID) Scan(src interface{}) error

func (UUID) String

func (u UUID) String() string

func (*UUID) UnmarshalBinary

func (u *UUID) UnmarshalBinary(data []byte) error

func (*UUID) UnmarshalText

func (u *UUID) UnmarshalText(text []byte) error

func (UUID) Value

func (u UUID) Value() (driver.Value, error)

func (UUID) Variant

func (u UUID) Variant() byte

func (UUID) Verify

func (u UUID) Verify(key []byte) bool

Verifies a signed UUID.

The key must be 64 bytes long.

func (UUID) Version

func (u UUID) Version() byte

Jump to

Keyboard shortcuts

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