uuidv1

package
v1.36.11-2024102212432... Latest Latest
Warning

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

Go to latest
Published: unknown License: MIT Imports: 4 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 (*UUID) GetHi

func (x *UUID) GetHi() uint64

func (*UUID) GetLo

func (x *UUID) GetLo() uint64

func (*UUID) ProtoMessage

func (*UUID) ProtoMessage()

func (*UUID) ProtoReflect

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

func (*UUID) Reset

func (x *UUID) Reset()

func (*UUID) SetHi

func (x *UUID) SetHi(v uint64)

func (*UUID) SetLo

func (x *UUID) SetLo(v uint64)

func (*UUID) String

func (x *UUID) String() string

type UUID_builder

type UUID_builder 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
	// 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
	// contains filtered or unexported fields
}

func (UUID_builder) Build

func (b0 UUID_builder) Build() *UUID

Source Files

  • uuid.pb.go

Jump to

Keyboard shortcuts

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