uuid

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: GPL-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorTypeObjectId = errors.New("Type data as not ObjectId UUID UnmarshalBSONValue error")
	ErrorReadObjectId = errors.New("Read ObjectID from []bytes error UUID UnmarshalBSONValue error")
)

Functions

This section is empty.

Types

type UUID

type UUID string

func (UUID) ConvertHexToObjectIDMongo

func (id UUID) ConvertHexToObjectIDMongo() (primitive.ObjectID, error)

func (*UUID) GenerateHexMongo

func (id *UUID) GenerateHexMongo()

func (UUID) GetObjectIDStringMongo

func (id UUID) GetObjectIDStringMongo() (string, error)

func (UUID) MarshalBSONValue

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

func (*UUID) UnmarshalBSONValue

func (id *UUID) UnmarshalBSONValue(t bsontype.Type, data []byte) error

Jump to

Keyboard shortcuts

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