Documentation
¶
Index ¶
- Constants
- type UUIDv1
- func (u *UUIDv1) FromBytes(data []byte) error
- func (u *UUIDv1) FromString(uuidStr string) error
- func (u *UUIDv1) GetClockSequence() uint16
- func (u *UUIDv1) GetNodeID() []byte
- func (u *UUIDv1) GetTime() time.Time
- func (u *UUIDv1) Marshal() ([]byte, error)
- func (u *UUIDv1) String() string
- func (u *UUIDv1) Unmarshal(marshalledData []byte) (int, error)
Constants ¶
View Source
const ( UUIDv1_VARIANT_RESERVED_NCS_BACKWARD_COMPATIBLE = 0x00 UUIDv1_VARIANT_RESERVED_RFC_4122_NAMESPACE_DNS = 0x01 UUIDv1_VARIANT_RESERVED_RFC_4122_NAMESPACE_URL = 0x02 UUIDv1_VARIANT_RESERVED_RFC_4122_NAMESPACE_OID = 0x03 UUIDv1_VARIANT_RESERVED_RFC_4122_NAMESPACE_X500 = 0x04 UUIDv1_VARIANT_RESERVED_FUTURE_USE = 0x05 UUIDv1_VARIANT_RESERVED_FOR_NCS_COMPATIBILITY = 0x06 UUIDv1_VARIANT_RESERVED_FOR_FUTURE_USE = 0x07 UUIDv1Epoch = uint64(122192928000000000) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UUIDv1 ¶
UUIDv1 represents a UUID v1 structure
func (*UUIDv1) FromString ¶
Decode parses a UUID string in the format "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" and returns a UUIDv1 structure.
func (*UUIDv1) GetClockSequence ¶
GetClockSequence returns the clock sequence of the UUIDv1 structure
Click to show internal directories.
Click to hide internal directories.