uuid

package module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: GPL-3.0 Imports: 10 Imported by: 7

README

Koverto - UUID

Go FOSSA Status

Wraps github.com/google/uuid for use as a protobuf type and with implementations of various serialization interfaces.

Usage

import "github.com/koverto/uuid/uuid.proto";

message User {
    uuid.UUID id = 1;
}

Copyright © 2020 Jesse B. Hannah. Licensed under the GNU GPL version 3 or later.

License

FOSSA Status

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthUuid = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowUuid   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type UUID

type UUID struct {
	Uuid *_uuid `protobuf:"bytes,1,opt,name=uuid,proto3,customtype=_uuid" json:"uuid,omitempty"`
}

func New

func New() *UUID

func Parse added in v1.3.0

func Parse(s string) (*UUID, error)

func (*UUID) Descriptor

func (*UUID) Descriptor() ([]byte, []int)

func (*UUID) Marshal

func (m *UUID) Marshal() (dAtA []byte, err error)

func (UUID) MarshalGQL added in v1.2.1

func (u UUID) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshal interface.

func (UUID) MarshalJSON added in v1.2.1

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

MarshalJSON implements the json.Marshaler interface.

func (*UUID) MarshalTo

func (m *UUID) MarshalTo(dAtA []byte) (int, error)

func (*UUID) ProtoMessage

func (*UUID) ProtoMessage()

func (*UUID) Reset

func (m *UUID) Reset()

func (*UUID) Size

func (m *UUID) Size() (n int)

func (*UUID) String

func (m *UUID) String() string

func (*UUID) Unmarshal

func (m *UUID) Unmarshal(dAtA []byte) error

func (*UUID) UnmarshalGQL added in v1.2.1

func (u *UUID) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the graphql.Unmarshal interface.

func (*UUID) UnmarshalJSON added in v1.2.1

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

UnmarshalJSON implements the json.Unmarshaler interface.

func (*UUID) XXX_DiscardUnknown

func (m *UUID) XXX_DiscardUnknown()

func (*UUID) XXX_Marshal

func (m *UUID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UUID) XXX_Merge

func (m *UUID) XXX_Merge(src proto.Message)

func (*UUID) XXX_Size

func (m *UUID) XXX_Size() int

func (*UUID) XXX_Unmarshal

func (m *UUID) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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