Documentation ¶
Index ¶
- Constants
- Variables
- func Equal(left *UUID, right *UUID) bool
- type UUID
- func (this UUID) ClockSequence() int
- func (this UUID) Counter() int64
- func (this UUID) CounterUnsigned() uint64
- func (this UUID) Equal(other UUID) bool
- func (this UUID) LeastSignificantBits() int64
- func (this UUID) MarshalBinary() (dst []byte, err error)
- func (this UUID) MarshalBinaryTo(dst []byte) error
- func (this UUID) MarshalJSON() ([]byte, error)
- func (this UUID) MarshalSortableBinary() ([]byte, error)
- func (this UUID) MarshalSortableBinaryTo(dst []byte) error
- func (this UUID) MarshalText() ([]byte, error)
- func (this UUID) MarshalTextTo(dst []byte) error
- func (this UUID) MostSignificantBits() int64
- func (this UUID) Node() int64
- func (this *UUID) SetClockSequence(clockSequence int)
- func (this *UUID) SetCounter(counter int64) int64
- func (this *UUID) SetCounterUnsigned(counter uint64) uint64
- func (this *UUID) SetLeastSignificantBits(leastSigBits int64)
- func (this *UUID) SetMaxCounter()
- func (this *UUID) SetMaxTime()
- func (this *UUID) SetMinCounter()
- func (this *UUID) SetMinTime()
- func (this *UUID) SetMostSignificantBits(mostSigBits int64)
- func (this *UUID) SetName(name []byte, version Version) error
- func (this *UUID) SetNode(node int64)
- func (this *UUID) SetTime(t time.Time)
- func (this *UUID) SetTime100Nanos(time100Nanos int64)
- func (this *UUID) SetTime100NanosUnsigned(time100Nanos uint64)
- func (this *UUID) SetUnixTime100Nanos(unixTime100Nanos int64)
- func (this *UUID) SetUnixTimeMillis(unixTimeMillis int64)
- func (this UUID) String() string
- func (this UUID) Time() time.Time
- func (this UUID) Time100Nanos() int64
- func (this UUID) Time100NanosUnsigned() uint64
- func (this UUID) URN() string
- func (this UUID) UnixTime100Nanos() int64
- func (this UUID) UnixTimeMillis() int64
- func (this *UUID) UnmarshalBinary(data []byte) error
- func (this *UUID) UnmarshalJSON(data []byte) error
- func (this *UUID) UnmarshalSortableBinary(data []byte) error
- func (this *UUID) UnmarshalText(data []byte) error
- func (this UUID) Variant() Variant
- func (this UUID) Version() Version
- type Variant
- type Version
Constants ¶
View Source
const ( NCSReserved = Variant(iota) IETF // The IETF variant specified in RFC4122 MicrosoftReserved // Reserved, Microsoft Corporation backward compatibility. FutureReserved // Reserved for future definition. UnknownVariant )
Constants returned by Variant.
View Source
const ( BadVersion = Version(iota) TimebasedVer1 DCESecurityVer2 NamebasedVer3 RandomlyGeneratedVer4 NamebasedVer5 UnknownVersion )
Constants returned by Version.
Variables ¶
View Source
var ( ErrorWrongLen = errors.New("wrong len") ErrorRequiredTimebasedUUID = errors.New("required timebased UUID") )
View Source
var Empty = UUID{0, 0}
Functions ¶
Types ¶
type UUID ¶
type UUID struct {
// contains filtered or unexported fields
}
func CreateUUID ¶
func NameUUIDFromBytes ¶
func ParseBytes ¶
func RandomUUID ¶
func (UUID) ClockSequence ¶
func (UUID) CounterUnsigned ¶
func (UUID) LeastSignificantBits ¶
func (UUID) MarshalBinary ¶
func (UUID) MarshalBinaryTo ¶
func (UUID) MarshalJSON ¶
func (UUID) MarshalSortableBinary ¶
func (UUID) MarshalSortableBinaryTo ¶
func (UUID) MarshalText ¶
func (UUID) MarshalTextTo ¶
func (UUID) MostSignificantBits ¶
func (*UUID) SetClockSequence ¶
func (*UUID) SetCounter ¶
func (*UUID) SetCounterUnsigned ¶
func (*UUID) SetLeastSignificantBits ¶
func (*UUID) SetMaxCounter ¶
func (this *UUID) SetMaxCounter()
func (*UUID) SetMaxTime ¶
func (this *UUID) SetMaxTime()
func (*UUID) SetMinCounter ¶
func (this *UUID) SetMinCounter()
func (*UUID) SetMinTime ¶
func (this *UUID) SetMinTime()
func (*UUID) SetMostSignificantBits ¶
func (*UUID) SetTime100Nanos ¶
func (*UUID) SetTime100NanosUnsigned ¶
func (*UUID) SetUnixTime100Nanos ¶
func (*UUID) SetUnixTimeMillis ¶
func (UUID) Time100Nanos ¶
func (UUID) Time100NanosUnsigned ¶
func (UUID) UnixTime100Nanos ¶
func (UUID) UnixTimeMillis ¶
func (*UUID) UnmarshalBinary ¶
func (*UUID) UnmarshalJSON ¶
func (*UUID) UnmarshalSortableBinary ¶
func (*UUID) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.