Documentation ¶
Overview ¶
Package protox contains utilities for working with protobufs.
Index ¶
- func DecodeBase64(data string, ret proto.Message) error
- func EncodeBase64(msg proto.Message) (string, error)
- func MustEncode(msg proto.Message) []byte
- func MustEncodeBase64(msg proto.Message) string
- func PackBase64Proto(in proto.Message) (*protobuf.Any, error)
- func PackBytes(in []byte) (*protobuf.Any, error)
- func PackProto(in proto.Message) (*protobuf.Any, error)
- func Unpack(data *protobuf.Any, url string, ret proto.Message) error
- func UnpackBase64Proto(data *protobuf.Any, ret proto.Message) error
- func UnpackBytes(data *protobuf.Any) ([]byte, error)
- func UnpackProto(data *protobuf.Any, ret proto.Message) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBase64 ¶
DecodeBase64 decodes a base64 wrapped proto.
func EncodeBase64 ¶
EncodeBase64 encodes a proto wrapped in base64.
func MustEncode ¶
MustEncode encode the message and panics on failure.
func MustEncodeBase64 ¶
MustEncodeBase64 encodes a proto wrapped in base64 and panics on failure.
func PackBase64Proto ¶
PackBase64Proto encodes a proto message into a base64-encoded BytesValue message.
func UnpackBase64Proto ¶
UnpackBase64Proto decodes a BytesValue + base64 wrapped proto.
func UnpackBytes ¶
UnpackBytes removes the BytesValue wrapper.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.