Versions in this module Expand all Collapse all v1 v1.0.0 Feb 4, 2016 v0 v0.16.0 Jan 21, 2016 Changes in this version + const ProtoPackageIsVersion1 + func EnumValueMap(enumType string) map[string]int32 + func MessageName(x Message) string + func MessageType(name string) reflect.Type + func RegisterType(x Message, name string) + func SizeVarint(x uint64) int + type OneofProperties struct + Field int + Prop *Properties + Type reflect.Type type StructProperties + OneofTypes map[string]*OneofProperties v0.15.0 Jan 8, 2016 v0.14.0 Dec 19, 2015 v0.13.0 Dec 4, 2015 v0.12.0 Nov 27, 2015 v0.11.0 Nov 13, 2015 v0.10.0 Oct 23, 2015 v0.9.0 Oct 12, 2015 Changes in this version + const WireBytes + const WireEndGroup + const WireFixed32 + const WireFixed64 + const WireStartGroup + const WireVarint + var ErrInternalBadWireType = errors.New("proto: internal error: bad wiretype for oneof") + var ErrMissingExtension = errors.New("proto: missing extension") + var ErrNil = errors.New("proto: Marshal called with nil") + var ErrNoMessageTypeId = errors.New("proto does not have a message type ID") + func Bool(v bool) *bool + func ClearExtension(pb extendableProto, extension *ExtensionDesc) + func CompactText(w io.Writer, pb Message) error + func CompactTextString(pb Message) string + func DecodeVarint(buf []byte) (x uint64, n int) + func EncodeVarint(x uint64) []byte + func EnumName(m map[int32]string, v int32) string + func Equal(a, b Message) bool + func Float32(v float32) *float32 + func Float64(v float64) *float64 + func GetExtension(pb extendableProto, extension *ExtensionDesc) (interface{}, error) + func GetExtensions(pb Message, es []*ExtensionDesc) (extensions []interface{}, err error) + func HasExtension(pb extendableProto, extension *ExtensionDesc) bool + func Int(v int) *int32 + func Int32(v int32) *int32 + func Int64(v int64) *int64 + func Marshal(pb Message) ([]byte, error) + func MarshalMessageSet(m map[int32]Extension) ([]byte, error) + func MarshalMessageSetJSON(m map[int32]Extension) ([]byte, error) + func MarshalText(w io.Writer, pb Message) error + func MarshalTextString(pb Message) string + func Merge(dst, src Message) + func RegisterEnum(typeName string, unusedNameMap map[int32]string, valueMap map[string]int32) + func RegisterExtension(desc *ExtensionDesc) + func RegisterMessageSetType(m Message, fieldNum int32, name string) + func RegisteredExtensions(pb Message) map[int32]*ExtensionDesc + func SetDefaults(pb Message) + func SetExtension(pb extendableProto, extension *ExtensionDesc, value interface{}) error + func SetRawExtension(base extendableProto, id int32, b []byte) + func Size(pb Message) (n int) + func String(v string) *string + func Uint32(v uint32) *uint32 + func Uint64(v uint64) *uint64 + func Unmarshal(buf []byte, pb Message) error + func UnmarshalJSONEnum(m map[string]int32, data []byte, enumName string) (int32, error) + func UnmarshalMerge(buf []byte, pb Message) error + func UnmarshalMessageSet(buf []byte, m map[int32]Extension) error + func UnmarshalMessageSetJSON(buf []byte, m map[int32]Extension) error + func UnmarshalText(s string, pb Message) error + type Buffer struct + func NewBuffer(e []byte) *Buffer + func (p *Buffer) Bytes() []byte + func (p *Buffer) DebugPrint(s string, b []byte) + func (p *Buffer) DecodeFixed32() (x uint64, err error) + func (p *Buffer) DecodeFixed64() (x uint64, err error) + func (p *Buffer) DecodeGroup(pb Message) error + func (p *Buffer) DecodeMessage(pb Message) error + func (p *Buffer) DecodeRawBytes(alloc bool) (buf []byte, err error) + func (p *Buffer) DecodeStringBytes() (s string, err error) + func (p *Buffer) DecodeVarint() (x uint64, err error) + func (p *Buffer) DecodeZigzag32() (x uint64, err error) + func (p *Buffer) DecodeZigzag64() (x uint64, err error) + func (p *Buffer) EncodeFixed32(x uint64) error + func (p *Buffer) EncodeFixed64(x uint64) error + func (p *Buffer) EncodeMessage(pb Message) error + func (p *Buffer) EncodeRawBytes(b []byte) error + func (p *Buffer) EncodeStringBytes(s string) error + func (p *Buffer) EncodeVarint(x uint64) error + func (p *Buffer) EncodeZigzag32(x uint64) error + func (p *Buffer) EncodeZigzag64(x uint64) error + func (p *Buffer) Marshal(pb Message) error + func (p *Buffer) Reset() + func (p *Buffer) SetBuf(s []byte) + func (p *Buffer) Unmarshal(pb Message) error + type Extension struct + type ExtensionDesc struct + ExtendedType Message + ExtensionType interface{} + Field int32 + Name string + Tag string + type ExtensionRange struct + End int32 + Start int32 + type Marshaler interface + Marshal func() ([]byte, error) + type Message interface + ProtoMessage func() + Reset func() + String func() string + func Clone(pb Message) Message + type MessageSet struct + Item []*_MessageSet_Item + XXX_unrecognized []byte + func (*MessageSet) ProtoMessage() + func (ms *MessageSet) Has(pb Message) bool + func (ms *MessageSet) Marshal(pb Message) error + func (ms *MessageSet) Reset() + func (ms *MessageSet) String() string + func (ms *MessageSet) Unmarshal(pb Message) error + type ParseError struct + Line int + Message string + Offset int + func (p *ParseError) Error() string + type Properties struct + Default string + Enum string + HasDefault bool + Name string + Optional bool + OrigName string + Packed bool + Repeated bool + Required bool + Tag int + Wire string + WireType int + func (p *Properties) Init(typ reflect.Type, name, tag string, f *reflect.StructField) + func (p *Properties) Parse(s string) + func (p *Properties) String() string + type RequiredNotSetError struct + func (e *RequiredNotSetError) Error() string + type Stats struct + Chit uint64 + Cmiss uint64 + Decode uint64 + Dmalloc uint64 + Emalloc uint64 + Encode uint64 + Size uint64 + func GetStats() Stats + type StructProperties struct + Prop []*Properties + func GetProperties(t reflect.Type) *StructProperties + func (sp *StructProperties) Len() int + func (sp *StructProperties) Less(i, j int) bool + func (sp *StructProperties) Swap(i, j int) + type Unmarshaler interface + Unmarshal func([]byte) error