types

package
v0.0.0-...-3216734 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package types is a generated protocol buffer package.

It is generated from these files:

types/types.proto

It has these top-level messages:

UUIDValue
JSONValue
UUID
InetValue
TimeOnly

Index

Constants

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

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

Variables

This section is empty.

Functions

func ParseTime

func ParseTime(value uint32) (string, error)

Types

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" json:"value,omitempty"`
}

func (*InetValue) Descriptor

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

func (*InetValue) GetValue

func (m *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) Reset

func (m *InetValue) Reset()

func (*InetValue) String

func (m *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" json:"value,omitempty"`
}

func (*JSONValue) Descriptor

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

func (*JSONValue) GetValue

func (m *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) Reset

func (m *JSONValue) Reset()

func (*JSONValue) String

func (m *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" json:"value,omitempty"`
}

func TimeOnlyByString

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

func (*TimeOnly) Descriptor

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

func (*TimeOnly) GetValue

func (m *TimeOnly) GetValue() uint32

func (*TimeOnly) MarshalJSONPB

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

func (*TimeOnly) ProtoMessage

func (*TimeOnly) ProtoMessage()

func (*TimeOnly) Reset

func (m *TimeOnly) Reset()

func (*TimeOnly) String

func (m *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" json:"value,omitempty"`
}

func (*UUID) Descriptor

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

func (*UUID) GetValue

func (m *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) Reset

func (m *UUID) Reset()

func (*UUID) String

func (m *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" json:"value,omitempty"`
}

func (*UUIDValue) Descriptor

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

func (*UUIDValue) GetValue

func (m *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) Reset

func (m *UUIDValue) Reset()

func (*UUIDValue) String

func (m *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