Documentation
¶
Index ¶
- func Aliases() map[string]string
- func Bool(v bool) *bool
- func ClearExtension(m Message, ext interface{})
- func Equal(m1, m2 Message) bool
- func FileDescriptor(file string) []byte
- func Float32(v float32) *float32
- func Float64(v float64) *float64
- func GetBoolExtension(m Message, extension interface{}, ifnotset bool) bool
- func GetExtension(m Message, ext interface{}) (extval interface{}, err error)
- func HasExtension(m Message, ext interface{}) bool
- func Int(v int) *int32
- func Int32(v int32) *int32
- func Int64(v int64) *int64
- func Marshal(m Message) ([]byte, error)
- func Merge(dst, src Message)
- func MessageName(m Message) string
- func MessageType(name string) reflect.Type
- func RegisteredExtensions(m Message, desiredType interface{}) (interface{}, error)
- func Reset(m Message)
- func SetExtension(m Message, ext interface{}, v interface{}) error
- func SetProtoer(up UntypedProtoer)
- func Size(m Message) int
- func String(v string) *string
- func Uint32(v uint32) *uint32
- func Uint64(v uint64) *uint64
- func Unmarshal(b []byte, m Message) error
- type Aliaser
- type Message
- type Protoer
- type UntypedProtoer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bool ¶
Bool is a helper routine that allocates a new bool value to store v and returns a pointer to it.
func ClearExtension ¶
func ClearExtension(m Message, ext interface{})
func FileDescriptor ¶
func Float32 ¶
Float32 is a helper routine that allocates a new float32 value to store v and returns a pointer to it.
func Float64 ¶
Float64 is a helper routine that allocates a new float64 value to store v and returns a pointer to it.
func GetBoolExtension ¶
func GetExtension ¶
func HasExtension ¶
func Int ¶
Int is a helper routine that allocates a new int32 value to store v and returns a pointer to it, but unlike Int32 its argument value is an int.
func Int32 ¶
Int32 is a helper routine that allocates a new int32 value to store v and returns a pointer to it.
func Int64 ¶
Int64 is a helper routine that allocates a new int64 value to store v and returns a pointer to it.
func MessageName ¶
func MessageType ¶
func RegisteredExtensions ¶
func SetExtension ¶
func SetProtoer ¶
func SetProtoer(up UntypedProtoer)
func String ¶
String is a helper routine that allocates a new string value to store v and returns a pointer to it.
func Uint32 ¶
Uint32 is a helper routine that allocates a new uint32 value to store v and returns a pointer to it.
Types ¶
type Protoer ¶
type Protoer interface { Marshal(m Message) ([]byte, error) Unmarshal(b []byte, m Message) error Clone(m Message) Message Equal(m1, m2 Message) bool Merge(dst, src Message) Reset(m Message) Size(m Message) int HasExtension(m Message, ext interface{}) bool ClearExtension(m Message, ext interface{}) GetExtension(m Message, ext interface{}) (interface{}, error) SetExtension(m Message, ext interface{}, v interface{}) error RegisteredExtensions(m Message, desiredType interface{}) (interface{}, error) FileDescriptor(file string) []byte MessageName(m Message) string MessageType(name string) reflect.Type }
func ToProtoer ¶
func ToProtoer(up UntypedProtoer) Protoer
type UntypedProtoer ¶
type UntypedProtoer interface { Marshal(m interface{}) ([]byte, error) Unmarshal(b []byte, m interface{}) error Clone(m interface{}) interface{} Equal(m1, m2 interface{}) bool Merge(dst, src interface{}) Reset(m interface{}) Size(m interface{}) int HasExtension(m interface{}, ext interface{}) bool ClearExtension(m interface{}, ext interface{}) GetExtension(m interface{}, ext interface{}) (interface{}, error) SetExtension(m interface{}, ext interface{}, v interface{}) error RegisteredExtensions(m interface{}, desiredType interface{}) (interface{}, error) FileDescriptor(file string) []byte MessageName(m interface{}) string MessageType(name string) reflect.Type }
Directories
¶
Path | Synopsis |
---|---|
test
Package test is a generated protocol buffer package.
|
Package test is a generated protocol buffer package. |
test/pkg
Package pkg is a generated protocol buffer package.
|
Package pkg is a generated protocol buffer package. |
test
Package test is a generated protocol buffer package.
|
Package test is a generated protocol buffer package. |
test/pkg
Package pkg is a generated protocol buffer package.
|
Package pkg is a generated protocol buffer package. |