mongouuid

package
v0.0.0-...-137c36e Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UUID

type UUID struct {
	// contains filtered or unexported fields
}

UUID Global unique id.

swagger:type string

func MakeUUID

func MakeUUID() UUID

func NewUUID

func NewUUID() *UUID

func UUIDFromObjectId

func UUIDFromObjectId(oid primitive.ObjectID) UUID

func UUIDFromString

func UUIDFromString(s string) (UUID, error)

func UUIDPointerSliceToSlice

func UUIDPointerSliceToSlice(inputSlice []*UUID) (outputSlice []UUID)

func UUIDSliceToPointerSlice

func UUIDSliceToPointerSlice(inputSlice []UUID) (outputSlice []*UUID)

func (UUID) Clone

func (g UUID) Clone() (clone UUID)

func (UUID) Equal

func (g UUID) Equal(x UUID) bool

func (UUID) MarshalBSONValue

func (g UUID) MarshalBSONValue() (bsontype.Type, []byte, error)

func (UUID) MarshalJSON

func (g UUID) MarshalJSON() ([]byte, error)

func (UUID) Raw

func (g UUID) Raw() primitive.ObjectID

func (*UUID) SetUUID

func (g *UUID) SetUUID(i *UUID)

func (UUID) String

func (g UUID) String() string

func (*UUID) UnmarshalBSONValue

func (g *UUID) UnmarshalBSONValue(t bsontype.Type, raw []byte) error

func (*UUID) UnmarshalJSON

func (g *UUID) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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