Documentation ¶
Overview ¶
Package protolegacy is a stub version of the v1 proto package to satisfy internal/testprotos/legacy dependencies.
Index ¶
- Constants
- Variables
- func CompactTextString(Message) string
- func DecodeVarint([]byte) (uint64, int)
- func EncodeVarint(uint64) []byte
- func EnumName(map[int32]string, int32) string
- func Marshal(Message) ([]byte, error)
- func RegisterEnum(string, map[int32]string, map[string]int32)
- func RegisterExtension(d *ExtensionDesc)
- func RegisterFile(s string, d []byte)
- func RegisterMapType(interface{}, string)
- func RegisterType(m Message, s string)
- func Size(Message) int
- func SizeVarint(uint64) int
- func Unmarshal([]byte, Message) error
- func UnmarshalJSONEnum(map[string]int32, []byte, string) (int32, error)
- type Buffer
- func (*Buffer) DecodeFixed32() (uint64, error)
- func (*Buffer) DecodeFixed64() (uint64, error)
- func (*Buffer) DecodeGroup(Message) error
- func (*Buffer) DecodeMessage(Message) error
- func (*Buffer) DecodeRawBytes(bool) ([]byte, error)
- func (*Buffer) DecodeStringBytes() (string, error)
- func (*Buffer) DecodeVarint() (uint64, error)
- func (*Buffer) DecodeZigzag32() (uint64, error)
- func (*Buffer) DecodeZigzag64() (uint64, error)
- func (*Buffer) EncodeFixed32(uint64) error
- func (*Buffer) EncodeFixed64(uint64) error
- func (*Buffer) EncodeMessage(Message) error
- func (*Buffer) EncodeRawBytes([]byte) error
- func (*Buffer) EncodeStringBytes(string) error
- func (*Buffer) EncodeVarint(uint64) error
- func (*Buffer) EncodeZigzag32(uint64) error
- func (*Buffer) EncodeZigzag64(uint64) error
- func (*Buffer) Marshal(Message) error
- func (*Buffer) Unmarshal(Message) error
- type Extension
- type ExtensionDesc
- type ExtensionRange
- type InternalMessageInfo
- type Message
- type XXX_InternalExtensions
Constants ¶
View Source
const ( ProtoPackageIsVersion1 = true ProtoPackageIsVersion2 = true ProtoPackageIsVersion3 = true )
View Source
const ( WireVarint = 0 WireFixed32 = 5 WireFixed64 = 1 WireBytes = 2 WireStartGroup = 3 WireEndGroup = 4 )
Variables ¶
View Source
var ErrInternalBadWireType = errors.New("not implemented")
Functions ¶
func CompactTextString ¶
func DecodeVarint ¶
func EncodeVarint ¶
func RegisterExtension ¶
func RegisterExtension(d *ExtensionDesc)
func RegisterFile ¶
func RegisterMapType ¶
func RegisterMapType(interface{}, string)
func RegisterType ¶
func SizeVarint ¶
Types ¶
type Buffer ¶
type Buffer struct{}
func (*Buffer) DecodeFixed32 ¶
func (*Buffer) DecodeFixed64 ¶
func (*Buffer) DecodeGroup ¶
func (*Buffer) DecodeMessage ¶
func (*Buffer) DecodeStringBytes ¶
func (*Buffer) DecodeVarint ¶
func (*Buffer) DecodeZigzag32 ¶
func (*Buffer) DecodeZigzag64 ¶
func (*Buffer) EncodeFixed32 ¶
func (*Buffer) EncodeFixed64 ¶
func (*Buffer) EncodeMessage ¶
func (*Buffer) EncodeRawBytes ¶
func (*Buffer) EncodeStringBytes ¶
func (*Buffer) EncodeVarint ¶
func (*Buffer) EncodeZigzag32 ¶
func (*Buffer) EncodeZigzag64 ¶
type Extension ¶
type Extension = protoimpl.ExtensionFieldV1
type ExtensionDesc ¶
type ExtensionDesc = protoimpl.ExtensionInfo
type ExtensionRange ¶
type ExtensionRange = protoiface.ExtensionRangeV1
type InternalMessageInfo ¶
type InternalMessageInfo struct{}
func (*InternalMessageInfo) DiscardUnknown ¶
func (*InternalMessageInfo) DiscardUnknown(Message)
func (*InternalMessageInfo) Merge ¶
func (*InternalMessageInfo) Merge(Message, Message)
func (*InternalMessageInfo) Size ¶
func (*InternalMessageInfo) Size(Message) int
type Message ¶
type Message = protoiface.MessageV1
type XXX_InternalExtensions ¶
type XXX_InternalExtensions = protoimpl.ExtensionFields
Click to show internal directories.
Click to hide internal directories.