urlvaluesproto

package
v0.0.0-...-202847b Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2023 License: Apache-2.0, BSD-2-Clause Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

Jump to

Keyboard shortcuts

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