types

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ZeroUUID = "00000000-0000-0000-0000-000000000000"

ZeroUUID The Zero value used for non-nil, but uninitialized UUID type

Variables

View Source
var File_types_types_proto protoreflect.FileDescriptor

Functions

func ParseTime

func ParseTime(value uint32) (string, error)

Types

type BigInt

type BigInt struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*BigInt) Descriptor deprecated

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

Deprecated: Use BigInt.ProtoReflect.Descriptor instead.

func (*BigInt) GetValue

func (x *BigInt) GetValue() string

func (*BigInt) MarshalJSONPB

func (m *BigInt) MarshalJSONPB(*jsonpb.Marshaler) ([]byte, error)

MarshalJSONPB overloads UUID's standard PB -> JSON conversion

func (*BigInt) ProtoMessage

func (*BigInt) ProtoMessage()

func (*BigInt) ProtoReflect

func (x *BigInt) ProtoReflect() protoreflect.Message

func (*BigInt) Reset

func (x *BigInt) Reset()

func (*BigInt) String

func (x *BigInt) String() string

func (*BigInt) UnmarshalJSONPB

func (m *BigInt) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, data []byte) error

UnmarshalJSONPB overloads UUID's standard JSON -> PB conversion.

type Inet

type Inet struct {
	*net.IPNet
}

Inet is a special scannable type for an IP/Netmask

func ParseInet

func ParseInet(addr string) (*Inet, error)

ParseInet will return the Inet address/netmask represented in the input string

func (*Inet) Scan

func (i *Inet) Scan(value interface{}) error

Scan implements the scan part of the sql scannable interface

func (*Inet) String

func (i *Inet) String() string

func (Inet) Value

func (i Inet) Value() (driver.Value, error)

Value implements the Value part of the sql scannable interface

type InetValue

type InetValue struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*InetValue) Descriptor deprecated

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

Deprecated: Use InetValue.ProtoReflect.Descriptor instead.

func (*InetValue) GetValue

func (x *InetValue) GetValue() string

func (*InetValue) MarshalJSONPB

func (m *InetValue) MarshalJSONPB(*jsonpb.Marshaler) ([]byte, error)

MarshalJSONPB overloads InetValue's standard PB -> JSON conversion

func (*InetValue) ProtoMessage

func (*InetValue) ProtoMessage()

func (*InetValue) ProtoReflect

func (x *InetValue) ProtoReflect() protoreflect.Message

func (*InetValue) Reset

func (x *InetValue) Reset()

func (*InetValue) String

func (x *InetValue) String() string

func (*InetValue) UnmarshalJSONPB

func (m *InetValue) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, data []byte) error

UnmarshalJSONPB overloads InetValue's standard JSON -> PB conversion. If data is null, can't create nil object, but will marshal as null later

type JSONValue

type JSONValue struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*JSONValue) Descriptor deprecated

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

Deprecated: Use JSONValue.ProtoReflect.Descriptor instead.

func (*JSONValue) GetValue

func (x *JSONValue) GetValue() string

func (*JSONValue) MarshalJSONPB

func (m *JSONValue) MarshalJSONPB(*jsonpb.Marshaler) ([]byte, error)

MarshalJSONPB overloads JSONValue's standard PB -> JSON conversion

func (*JSONValue) ProtoMessage

func (*JSONValue) ProtoMessage()

func (*JSONValue) ProtoReflect

func (x *JSONValue) ProtoReflect() protoreflect.Message

func (*JSONValue) Reset

func (x *JSONValue) Reset()

func (*JSONValue) String

func (x *JSONValue) String() string

func (*JSONValue) UnmarshalJSONPB

func (m *JSONValue) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, data []byte) error

UnmarshalJSONPB overloads JSONValue's standard JSON -> PB conversion. If data is null, can't create nil object, but will marshal as null later

type TimeOnly

type TimeOnly struct {
	Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func TimeOnlyByString

func TimeOnlyByString(s string) (*TimeOnly, error)

func (*TimeOnly) Descriptor deprecated

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

Deprecated: Use TimeOnly.ProtoReflect.Descriptor instead.

func (*TimeOnly) GetValue

func (x *TimeOnly) GetValue() uint32

func (*TimeOnly) MarshalJSONPB

func (t *TimeOnly) MarshalJSONPB(*jsonpb.Marshaler) ([]byte, error)

func (*TimeOnly) ProtoMessage

func (*TimeOnly) ProtoMessage()

func (*TimeOnly) ProtoReflect

func (x *TimeOnly) ProtoReflect() protoreflect.Message

func (*TimeOnly) Reset

func (x *TimeOnly) Reset()

func (*TimeOnly) String

func (x *TimeOnly) String() string

func (*TimeOnly) StringRepresentation

func (t *TimeOnly) StringRepresentation() (string, error)

func (*TimeOnly) UnmarshalJSONPB

func (t *TimeOnly) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, data []byte) error

func (*TimeOnly) Valid

func (t *TimeOnly) Valid() bool

type UUID

type UUID struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*UUID) Descriptor deprecated

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

Deprecated: Use UUID.ProtoReflect.Descriptor instead.

func (*UUID) GetValue

func (x *UUID) GetValue() string

func (*UUID) MarshalJSONPB

func (m *UUID) MarshalJSONPB(*jsonpb.Marshaler) ([]byte, error)

MarshalJSONPB overloads UUID's standard PB -> JSON conversion

func (*UUID) ProtoMessage

func (*UUID) ProtoMessage()

func (*UUID) ProtoReflect

func (x *UUID) ProtoReflect() protoreflect.Message

func (*UUID) Reset

func (x *UUID) Reset()

func (*UUID) String

func (x *UUID) String() string

func (*UUID) UnmarshalJSONPB

func (m *UUID) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, data []byte) error

UnmarshalJSONPB overloads UUID's standard JSON -> PB conversion. If data is null, can't create nil object, but will marshal as null later

type UUIDValue

type UUIDValue struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*UUIDValue) Descriptor deprecated

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

Deprecated: Use UUIDValue.ProtoReflect.Descriptor instead.

func (*UUIDValue) GetValue

func (x *UUIDValue) GetValue() string

func (*UUIDValue) MarshalJSONPB

func (m *UUIDValue) MarshalJSONPB(*jsonpb.Marshaler) ([]byte, error)

MarshalJSONPB overloads UUIDValue's standard PB -> JSON conversion

func (*UUIDValue) ProtoMessage

func (*UUIDValue) ProtoMessage()

func (*UUIDValue) ProtoReflect

func (x *UUIDValue) ProtoReflect() protoreflect.Message

func (*UUIDValue) Reset

func (x *UUIDValue) Reset()

func (*UUIDValue) String

func (x *UUIDValue) String() string

func (*UUIDValue) UnmarshalJSONPB

func (m *UUIDValue) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, data []byte) error

UnmarshalJSONPB overloads UUIDValue's standard JSON -> PB conversion. If data is null, can't create nil object, but will marshal as null later

Jump to

Keyboard shortcuts

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