uuid

package
v0.0.0-...-5bbb7b8 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UUID

type UUID struct {
	uuid.UUID
}

UUID implements additional interfaces atop the uuid.UUID type.

func New

func New() UUID

New generates a new UUID.

func Parse

func Parse(s string) (id UUID, err error)

Parse decodes s into a UUID or returns an error.

func (UUID) MarshalBSONValue

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

MarshalBSONValue implements the bson.ValueMarshaler interface.

func (UUID) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface.

func (*UUID) MarshalTo

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

MarshalTo is required to implement the proto.Marshaler interface.

func (*UUID) Size

func (u *UUID) Size() int

Size is required to implement the proto.Marshaler interface.

func (*UUID) Unmarshal

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

Unmarshal is required to implement the proto.Marshaler interface.

func (*UUID) UnmarshalBSONValue

func (u *UUID) UnmarshalBSONValue(bsonType bsontype.Type, data []byte) error

UnmarshalBSONValue implements the bson.ValueUnmarshaler interface.

func (*UUID) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface.

Jump to

Keyboard shortcuts

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