cockroach: github.com/abhinavdahiya/cockroach/util/uuid Index | Files

package uuid

import "github.com/abhinavdahiya/cockroach/util/uuid"

Index

Package Files

uuid.go

Variables

var EmptyUUID = &UUID{}

EmptyUUID is the zero-UUID.

func Equal Uses

func Equal(u1, u2 UUID) bool

Equal delegates to "github.com/satori/go.uuid".Equal.

type UUID Uses

type UUID struct {
    uuid.UUID
}

UUID is a thin wrapper around "github.com/satori/go.uuid".UUID that can be used as a gogo/protobuf customtype.

func FromBytes Uses

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

FromBytes delegates to "github.com/satori/go.uuid".FromBytes and wraps the result in a UUID.

func FromString Uses

func FromString(input string) (*UUID, error)

FromString delegates to "github.com/satori/go.uuid".FromString and wraps the result in a UUID.

func MakeV4 Uses

func MakeV4() UUID

MakeV4 delegates to "github.com/satori/go.uuid".NewV4 and wraps the result in a UUID.

func NewPopulatedUUID Uses

func NewPopulatedUUID(r interface {
    Int63() int64
}) *UUID

NewPopulatedUUID returns a populated UUID.

func NewV4 Uses

func NewV4() *UUID

NewV4 delegates to "github.com/satori/go.uuid".NewV4 and wraps the result in a UUID.

func (UUID) Bytes Uses

func (u UUID) Bytes() error

Bytes shadows (*github.com/satori/go.uuid.UUID).Bytes() to prevent confusing our default proto stringer. TODO(tschottdorf): fix upstream.

func (UUID) GetBytes Uses

func (u UUID) GetBytes() []byte

GetBytes returns the UUID as a byte slice.

func (UUID) MarshalTo Uses

func (u UUID) MarshalTo(data []byte) (int, error)

MarshalTo marshals u to data.

func (*UUID) Short Uses

func (u *UUID) Short() string

Short returns the first eight characters of the output of String().

func (UUID) Size Uses

func (u UUID) Size() int

Size returns the marshalled size of u, in bytes.

func (*UUID) String Uses

func (u *UUID) String() string

String returns the canonical representation of the UUID. For nil UUIDs, returns <nil>.

func (*UUID) Unmarshal Uses

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

Unmarshal unmarshals data to u.

Package uuid imports 3 packages (graph). Updated 2017-03-13. Refresh now. Tools for package owners. This is a dead-end fork (no commits since the fork).