Documentation ¶
Index ¶
- Variables
- func ProtoToValues(vals urlvalues.Values, pkv *ProtoKeyValues) urlvalues.Values
- type ProtoKeyValue
- func (*ProtoKeyValue) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoKeyValue) GetKey() string
- func (x *ProtoKeyValue) GetValue() []string
- func (m *ProtoKeyValue) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ProtoKeyValue) MarshalToVT(dAtA []byte) (int, error)
- func (m *ProtoKeyValue) MarshalVT() (dAtA []byte, err error)
- func (*ProtoKeyValue) ProtoMessage()
- func (x *ProtoKeyValue) ProtoReflect() protoreflect.Message
- func (x *ProtoKeyValue) Reset()
- func (m *ProtoKeyValue) SizeVT() (n int)
- func (x *ProtoKeyValue) String() string
- func (m *ProtoKeyValue) UnmarshalVT(dAtA []byte) error
- type ProtoKeyValues
- func (*ProtoKeyValues) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoKeyValues) GetData() []*ProtoKeyValue
- func (m *ProtoKeyValues) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ProtoKeyValues) MarshalToVT(dAtA []byte) (int, error)
- func (m *ProtoKeyValues) MarshalVT() (dAtA []byte, err error)
- func (*ProtoKeyValues) ProtoMessage()
- func (x *ProtoKeyValues) ProtoReflect() protoreflect.Message
- func (x *ProtoKeyValues) Reset()
- func (m *ProtoKeyValues) SizeVT() (n int)
- func (x *ProtoKeyValues) String() string
- func (m *ProtoKeyValues) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
View Source
var File_values_proto protoreflect.FileDescriptor
Functions ¶
func ProtoToValues ¶
func ProtoToValues(vals urlvalues.Values, pkv *ProtoKeyValues) urlvalues.Values
ProtoToValues converts a proto message to a Values type. It appends to argument vals, which can be nil.
Types ¶
type ProtoKeyValue ¶
type ProtoKeyValue struct { Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` Value []string `protobuf:"bytes,2,rep,name=Value,proto3" json:"Value,omitempty"` // contains filtered or unexported fields }
func (*ProtoKeyValue) Descriptor
deprecated
func (*ProtoKeyValue) Descriptor() ([]byte, []int)
Deprecated: Use ProtoKeyValue.ProtoReflect.Descriptor instead.
func (*ProtoKeyValue) GetKey ¶
func (x *ProtoKeyValue) GetKey() string
func (*ProtoKeyValue) GetValue ¶
func (x *ProtoKeyValue) GetValue() []string
func (*ProtoKeyValue) MarshalToSizedBufferVT ¶
func (m *ProtoKeyValue) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ProtoKeyValue) MarshalToVT ¶
func (m *ProtoKeyValue) MarshalToVT(dAtA []byte) (int, error)
func (*ProtoKeyValue) MarshalVT ¶
func (m *ProtoKeyValue) MarshalVT() (dAtA []byte, err error)
func (*ProtoKeyValue) ProtoMessage ¶
func (*ProtoKeyValue) ProtoMessage()
func (*ProtoKeyValue) ProtoReflect ¶
func (x *ProtoKeyValue) ProtoReflect() protoreflect.Message
func (*ProtoKeyValue) Reset ¶
func (x *ProtoKeyValue) Reset()
func (*ProtoKeyValue) SizeVT ¶
func (m *ProtoKeyValue) SizeVT() (n int)
func (*ProtoKeyValue) String ¶
func (x *ProtoKeyValue) String() string
func (*ProtoKeyValue) UnmarshalVT ¶
func (m *ProtoKeyValue) UnmarshalVT(dAtA []byte) error
type ProtoKeyValues ¶
type ProtoKeyValues struct { Data []*ProtoKeyValue `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data,omitempty"` // contains filtered or unexported fields }
func ValuesToProto ¶
func ValuesToProto(vals urlvalues.Values) *ProtoKeyValues
ValuesToProto converts a Values map to a proto message.
func (*ProtoKeyValues) Descriptor
deprecated
func (*ProtoKeyValues) Descriptor() ([]byte, []int)
Deprecated: Use ProtoKeyValues.ProtoReflect.Descriptor instead.
func (*ProtoKeyValues) GetData ¶
func (x *ProtoKeyValues) GetData() []*ProtoKeyValue
func (*ProtoKeyValues) MarshalToSizedBufferVT ¶
func (m *ProtoKeyValues) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ProtoKeyValues) MarshalToVT ¶
func (m *ProtoKeyValues) MarshalToVT(dAtA []byte) (int, error)
func (*ProtoKeyValues) MarshalVT ¶
func (m *ProtoKeyValues) MarshalVT() (dAtA []byte, err error)
func (*ProtoKeyValues) ProtoMessage ¶
func (*ProtoKeyValues) ProtoMessage()
func (*ProtoKeyValues) ProtoReflect ¶
func (x *ProtoKeyValues) ProtoReflect() protoreflect.Message
func (*ProtoKeyValues) Reset ¶
func (x *ProtoKeyValues) Reset()
func (*ProtoKeyValues) SizeVT ¶
func (m *ProtoKeyValues) SizeVT() (n int)
func (*ProtoKeyValues) String ¶
func (x *ProtoKeyValues) String() string
func (*ProtoKeyValues) UnmarshalVT ¶
func (m *ProtoKeyValues) UnmarshalVT(dAtA []byte) error
Click to show internal directories.
Click to hide internal directories.