Documentation ¶
Index ¶
- func BufToProto(r io.Reader, msg proto.Message) error
- func BufToValue(r io.Reader) (*structpb.Value, error)
- func NewStruct() *structpb.Struct
- func ProtoToBuf(w io.Writer, msg proto.Message) error
- func ProtoToStr(msg proto.Message) string
- func UnmarshalNext(d *json.Decoder, m proto.Message) error
- func ValueToBuf(w io.Writer, v *structpb.Value) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BufToProto ¶
BufToProto unmarshal buffer to protomessage.
func BufToValue ¶ added in v0.8.3
BufToValue unmarshal buffer to value struct.
func NewStruct ¶ added in v0.8.3
NewStruct, returns *structpb.Struct instance with initialized Fields map.
func ProtoToBuf ¶
ProtoToBuf marshal protomessage to buffer.
func ProtoToStr ¶
ProtoToStr marshal protomessage to string.
func UnmarshalNext ¶
UnmarshalNext unmarshal next protomessage in stream.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.