types

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 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 added in v1.0.0

func ParseTime(value uint32) (string, error)

Types

type Inet added in v0.6.0

type Inet struct {
	*net.IPNet
}

Inet is a special scannable type for an IP/Netmask

func ParseInet added in v0.6.0

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

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

func (*Inet) Scan added in v0.6.0

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

Scan implements the scan part of the sql scannable interface

func (*Inet) String added in v0.8.0

func (i *Inet) String() string

func (Inet) Value added in v0.6.0

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

Value implements the Value part of the sql scannable interface

type InetValue added in v0.6.0

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

func (*InetValue) Descriptor deprecated added in v0.6.0

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

Deprecated: Use InetValue.ProtoReflect.Descriptor instead.

func (*InetValue) GetValue added in v0.6.0

func (x *InetValue) GetValue() string

func (*InetValue) MarshalJSONPB added in v0.6.0

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

MarshalJSONPB overloads InetValue's standard PB -> JSON conversion

func (*InetValue) ProtoMessage added in v0.6.0

func (*InetValue) ProtoMessage()

func (*InetValue) ProtoReflect added in v1.0.0

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

func (*InetValue) Reset added in v0.6.0

func (x *InetValue) Reset()

func (*InetValue) String added in v0.6.0

func (x *InetValue) String() string

func (*InetValue) UnmarshalJSONPB added in v0.6.0

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 added in v0.5.0

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

func (*JSONValue) Descriptor deprecated added in v0.5.0

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

Deprecated: Use JSONValue.ProtoReflect.Descriptor instead.

func (*JSONValue) GetValue added in v0.5.0

func (x *JSONValue) GetValue() string

func (*JSONValue) MarshalJSONPB added in v0.5.0

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

MarshalJSONPB overloads JSONValue's standard PB -> JSON conversion

func (*JSONValue) ProtoMessage added in v0.5.0

func (*JSONValue) ProtoMessage()

func (*JSONValue) ProtoReflect added in v1.0.0

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

func (*JSONValue) Reset added in v0.5.0

func (x *JSONValue) Reset()

func (*JSONValue) String added in v0.5.0

func (x *JSONValue) String() string

func (*JSONValue) UnmarshalJSONPB added in v0.5.0

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 added in v1.0.0

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

func TimeOnlyByString added in v1.0.0

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

func (*TimeOnly) Descriptor deprecated added in v1.0.0

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

Deprecated: Use TimeOnly.ProtoReflect.Descriptor instead.

func (*TimeOnly) GetValue added in v1.0.0

func (x *TimeOnly) GetValue() uint32

func (*TimeOnly) MarshalJSONPB added in v1.0.0

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

func (*TimeOnly) ProtoMessage added in v1.0.0

func (*TimeOnly) ProtoMessage()

func (*TimeOnly) ProtoReflect added in v1.0.0

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

func (*TimeOnly) Reset added in v1.0.0

func (x *TimeOnly) Reset()

func (*TimeOnly) String added in v1.0.0

func (x *TimeOnly) String() string

func (*TimeOnly) StringRepresentation added in v1.0.0

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

func (*TimeOnly) UnmarshalJSONPB added in v1.0.0

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

func (*TimeOnly) Valid added in v1.0.0

func (t *TimeOnly) Valid() bool

type UUID added in v0.5.1

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

func (*UUID) Descriptor deprecated added in v0.5.1

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

Deprecated: Use UUID.ProtoReflect.Descriptor instead.

func (*UUID) GetValue added in v0.5.1

func (x *UUID) GetValue() string

func (*UUID) MarshalJSONPB added in v0.5.1

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

MarshalJSONPB overloads UUID's standard PB -> JSON conversion

func (*UUID) ProtoMessage added in v0.5.1

func (*UUID) ProtoMessage()

func (*UUID) ProtoReflect added in v1.0.0

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

func (*UUID) Reset added in v0.5.1

func (x *UUID) Reset()

func (*UUID) String added in v0.5.1

func (x *UUID) String() string

func (*UUID) UnmarshalJSONPB added in v0.5.1

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 added in v0.5.0

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 added in v1.0.0

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

func (*UUIDValue) Reset

func (x *UUIDValue) Reset()

func (*UUIDValue) String

func (x *UUIDValue) String() string

func (*UUIDValue) UnmarshalJSONPB added in v0.5.0

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