uuid

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_uuid_v1_uuid_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type UUID

type UUID struct {

	// The high 64 bits of the UUID - MSB -> LSB: time_low (32 bits) | time_mid (16 bits) | time_hi_and_version (16 bits).
	Hi uint64 `protobuf:"fixed64,1,opt,name=hi,proto3" json:"hi,omitempty"`
	// The low 64 bits of the UUID - MSB -> LSB: clock_seq_hi_and_reserved (8 bits) | clock_seq_low (8 bits) | node (48 bits).
	Lo uint64 `protobuf:"fixed64,2,opt,name=lo,proto3" json:"lo,omitempty"`
	// contains filtered or unexported fields
}

A UUID, encoded in accordance with section 4.1.2 of RFC 4122.

func New added in v1.1.2

func New() *UUID

func NewUUID added in v1.1.2

func NewUUID() (*UUID, error)

func (*UUID) Descriptor deprecated

func (*UUID) Descriptor() ([]byte, []int)

Deprecated: Use UUID.ProtoReflect.Descriptor instead.

func (*UUID) FromUUID

func (x *UUID) FromUUID(u uuid.UUID) *UUID

func (*UUID) GetHi

func (x *UUID) GetHi() uint64

func (*UUID) GetLo

func (x *UUID) GetLo() uint64

func (*UUID) MarshalBinary

func (x *UUID) MarshalBinary() ([]byte, error)

func (*UUID) MarshalText

func (x *UUID) MarshalText() ([]byte, error)

func (*UUID) ProtoMessage

func (*UUID) ProtoMessage()

func (*UUID) ProtoReflect

func (x *UUID) ProtoReflect() protoreflect.Message

func (*UUID) Reset

func (x *UUID) Reset()

func (*UUID) Scan

func (x *UUID) Scan(src any) error

func (*UUID) String

func (x *UUID) String() string

func (*UUID) ToBytes

func (x *UUID) ToBytes() []byte

func (*UUID) ToUUID

func (x *UUID) ToUUID() (uuid.UUID, error)

func (*UUID) UnmarshalBinary

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

func (*UUID) UnmarshalText

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

func (*UUID) Value

func (x *UUID) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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