Documentation ¶
Overview ¶
Package support defines the supported and unsupported field types for binding. It is used for internal unit testing.
Index ¶
- Variables
- type Simple
- func (*Simple) Descriptor() ([]byte, []int)deprecated
- func (x *Simple) GetCreated() *timestamppb.Timestamp
- func (x *Simple) GetData() string
- func (x *Simple) GetId() int32
- func (x *Simple) GetTitle() string
- func (*Simple) ProtoMessage()
- func (x *Simple) ProtoReflect() protoreflect.Message
- func (x *Simple) Reset()
- func (x *Simple) String() string
- type SimpleColumns
- func (SimpleColumns) Descriptor() protoreflect.EnumDescriptor
- func (x SimpleColumns) Enum() *SimpleColumns
- func (SimpleColumns) EnumDescriptor() ([]byte, []int)deprecated
- func (x SimpleColumns) Number() protoreflect.EnumNumber
- func (x SimpleColumns) String() string
- func (SimpleColumns) Type() protoreflect.EnumType
- type SimpleQuery
- func (*SimpleQuery) Descriptor() ([]byte, []int)deprecated
- func (x *SimpleQuery) GetColumns() []SimpleColumns
- func (x *SimpleQuery) GetId() int32
- func (*SimpleQuery) ProtoMessage()
- func (x *SimpleQuery) ProtoReflect() protoreflect.Message
- func (x *SimpleQuery) Reset()
- func (x *SimpleQuery) String() string
- type Supported
- func (*Supported) Descriptor() ([]byte, []int)deprecated
- func (x *Supported) GetBl() bool
- func (x *Supported) GetBt() []byte
- func (x *Supported) GetD() float64
- func (x *Supported) GetF() float32
- func (x *Supported) GetI32() int32
- func (x *Supported) GetI64() int64
- func (m *Supported) GetO() isSupported_O
- func (x *Supported) GetOb() bool
- func (x *Supported) GetOi() int32
- func (x *Supported) GetRBl() []bool
- func (x *Supported) GetRBt() [][]byte
- func (x *Supported) GetRD() []float64
- func (x *Supported) GetRF() []float32
- func (x *Supported) GetRI32() []int32
- func (x *Supported) GetRI64() []int64
- func (x *Supported) GetRS() []string
- func (x *Supported) GetRTs() []*timestamppb.Timestamp
- func (x *Supported) GetRU32() []uint32
- func (x *Supported) GetRU64() []uint64
- func (x *Supported) GetS() string
- func (x *Supported) GetTs() *timestamppb.Timestamp
- func (x *Supported) GetU32() uint32
- func (x *Supported) GetU64() uint64
- func (*Supported) ProtoMessage()
- func (x *Supported) ProtoReflect() protoreflect.Message
- func (x *Supported) Reset()
- func (x *Supported) String() string
- type Supported_Ob
- type Supported_Oi
- type Unsupported
- func (*Unsupported) Descriptor() ([]byte, []int)deprecated
- func (x *Unsupported) GetEn() SimpleColumns
- func (x *Unsupported) GetMp() map[string]int32
- func (x *Unsupported) GetREn() []SimpleColumns
- func (x *Unsupported) GetSup() *Supported
- func (x *Unsupported) GetTsMp() map[int32]*timestamppb.Timestamp
- func (*Unsupported) ProtoMessage()
- func (x *Unsupported) ProtoReflect() protoreflect.Message
- func (x *Unsupported) Reset()
- func (x *Unsupported) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SimpleColumns_name = map[int32]string{ 0: "id", 1: "title", 2: "data", 3: "created", } SimpleColumns_value = map[string]int32{ "id": 0, "title": 1, "data": 2, "created": 3, } )
Enum value maps for SimpleColumns.
View Source
var File_support_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Simple ¶
type Simple struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` // contains filtered or unexported fields }
Simple is used for unit testing
func (*Simple) Descriptor
deprecated
func (*Simple) GetCreated ¶
func (x *Simple) GetCreated() *timestamppb.Timestamp
func (*Simple) ProtoMessage ¶
func (*Simple) ProtoMessage()
func (*Simple) ProtoReflect ¶
func (x *Simple) ProtoReflect() protoreflect.Message
type SimpleColumns ¶
type SimpleColumns int32
const ( SimpleColumns_id SimpleColumns = 0 SimpleColumns_title SimpleColumns = 1 SimpleColumns_data SimpleColumns = 2 SimpleColumns_created SimpleColumns = 3 )
func (SimpleColumns) Descriptor ¶
func (SimpleColumns) Descriptor() protoreflect.EnumDescriptor
func (SimpleColumns) Enum ¶
func (x SimpleColumns) Enum() *SimpleColumns
func (SimpleColumns) EnumDescriptor
deprecated
func (SimpleColumns) EnumDescriptor() ([]byte, []int)
Deprecated: Use SimpleColumns.Descriptor instead.
func (SimpleColumns) Number ¶
func (x SimpleColumns) Number() protoreflect.EnumNumber
func (SimpleColumns) String ¶
func (x SimpleColumns) String() string
func (SimpleColumns) Type ¶
func (SimpleColumns) Type() protoreflect.EnumType
type SimpleQuery ¶
type SimpleQuery struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Columns []SimpleColumns `protobuf:"varint,2,rep,packed,name=columns,proto3,enum=support.SimpleColumns" json:"columns,omitempty"` // contains filtered or unexported fields }
func (*SimpleQuery) Descriptor
deprecated
func (*SimpleQuery) Descriptor() ([]byte, []int)
Deprecated: Use SimpleQuery.ProtoReflect.Descriptor instead.
func (*SimpleQuery) GetColumns ¶
func (x *SimpleQuery) GetColumns() []SimpleColumns
func (*SimpleQuery) GetId ¶
func (x *SimpleQuery) GetId() int32
func (*SimpleQuery) ProtoMessage ¶
func (*SimpleQuery) ProtoMessage()
func (*SimpleQuery) ProtoReflect ¶
func (x *SimpleQuery) ProtoReflect() protoreflect.Message
func (*SimpleQuery) Reset ¶
func (x *SimpleQuery) Reset()
func (*SimpleQuery) String ¶
func (x *SimpleQuery) String() string
type Supported ¶
type Supported struct { Bl bool `protobuf:"varint,1,opt,name=bl,proto3" json:"bl,omitempty"` I32 int32 `protobuf:"varint,2,opt,name=i32,proto3" json:"i32,omitempty"` I64 int64 `protobuf:"varint,3,opt,name=i64,proto3" json:"i64,omitempty"` F float32 `protobuf:"fixed32,4,opt,name=f,proto3" json:"f,omitempty"` D float64 `protobuf:"fixed64,5,opt,name=d,proto3" json:"d,omitempty"` S string `protobuf:"bytes,6,opt,name=s,proto3" json:"s,omitempty"` Bt []byte `protobuf:"bytes,7,opt,name=bt,proto3" json:"bt,omitempty"` U32 uint32 `protobuf:"varint,8,opt,name=u32,proto3" json:"u32,omitempty"` U64 uint64 `protobuf:"varint,9,opt,name=u64,proto3" json:"u64,omitempty"` Ts *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=ts,proto3" json:"ts,omitempty"` RBl []bool `protobuf:"varint,11,rep,packed,name=r_bl,json=rBl,proto3" json:"r_bl,omitempty"` RI32 []int32 `protobuf:"varint,12,rep,packed,name=r_i32,json=rI32,proto3" json:"r_i32,omitempty"` RI64 []int64 `protobuf:"varint,13,rep,packed,name=r_i64,json=rI64,proto3" json:"r_i64,omitempty"` RF []float32 `protobuf:"fixed32,14,rep,packed,name=r_f,json=rF,proto3" json:"r_f,omitempty"` RD []float64 `protobuf:"fixed64,15,rep,packed,name=r_d,json=rD,proto3" json:"r_d,omitempty"` RS []string `protobuf:"bytes,16,rep,name=r_s,json=rS,proto3" json:"r_s,omitempty"` RU32 []uint32 `protobuf:"varint,17,rep,packed,name=r_u32,json=rU32,proto3" json:"r_u32,omitempty"` RBt [][]byte `protobuf:"bytes,18,rep,name=r_bt,json=rBt,proto3" json:"r_bt,omitempty"` RU64 []uint64 `protobuf:"varint,19,rep,packed,name=r_u64,json=rU64,proto3" json:"r_u64,omitempty"` RTs []*timestamppb.Timestamp `protobuf:"bytes,20,rep,name=r_ts,json=rTs,proto3" json:"r_ts,omitempty"` // Types that are assignable to O: // *Supported_Ob // *Supported_Oi O isSupported_O `protobuf_oneof:"o"` // contains filtered or unexported fields }
Supported destination types
func (*Supported) Descriptor
deprecated
func (*Supported) GetRTs ¶
func (x *Supported) GetRTs() []*timestamppb.Timestamp
func (*Supported) GetTs ¶
func (x *Supported) GetTs() *timestamppb.Timestamp
func (*Supported) ProtoMessage ¶
func (*Supported) ProtoMessage()
func (*Supported) ProtoReflect ¶
func (x *Supported) ProtoReflect() protoreflect.Message
type Supported_Ob ¶
type Supported_Ob struct {
Ob bool `protobuf:"varint,21,opt,name=ob,proto3,oneof"`
}
type Supported_Oi ¶
type Supported_Oi struct {
Oi int32 `protobuf:"varint,22,opt,name=oi,proto3,oneof"`
}
type Unsupported ¶
type Unsupported struct { Sup *Supported `protobuf:"bytes,1,opt,name=sup,proto3" json:"sup,omitempty"` // Nested, unregisterd messages Mp map[string]int32 `` /* 146-byte string literal not displayed */ TsMp map[int32]*timestamppb.Timestamp `` /* 162-byte string literal not displayed */ En SimpleColumns `protobuf:"varint,4,opt,name=en,proto3,enum=support.SimpleColumns" json:"en,omitempty"` REn []SimpleColumns `protobuf:"varint,5,rep,packed,name=r_en,json=rEn,proto3,enum=support.SimpleColumns" json:"r_en,omitempty"` // contains filtered or unexported fields }
Unsupported scan destination types (for now)
func (*Unsupported) Descriptor
deprecated
func (*Unsupported) Descriptor() ([]byte, []int)
Deprecated: Use Unsupported.ProtoReflect.Descriptor instead.
func (*Unsupported) GetEn ¶
func (x *Unsupported) GetEn() SimpleColumns
func (*Unsupported) GetMp ¶
func (x *Unsupported) GetMp() map[string]int32
func (*Unsupported) GetREn ¶
func (x *Unsupported) GetREn() []SimpleColumns
func (*Unsupported) GetSup ¶
func (x *Unsupported) GetSup() *Supported
func (*Unsupported) GetTsMp ¶
func (x *Unsupported) GetTsMp() map[int32]*timestamppb.Timestamp
func (*Unsupported) ProtoMessage ¶
func (*Unsupported) ProtoMessage()
func (*Unsupported) ProtoReflect ¶
func (x *Unsupported) ProtoReflect() protoreflect.Message
func (*Unsupported) Reset ¶
func (x *Unsupported) Reset()
func (*Unsupported) String ¶
func (x *Unsupported) String() string
Click to show internal directories.
Click to hide internal directories.