Documentation
¶
Index ¶
- func BufToProto(r io.Reader, msg proto.Message) error
- func FromStructValue(from *structpb.Value, to interface{}) error
- func NewStruct() *structpb.Struct
- func ProtoToBuf(w io.Writer, msg proto.Message) error
- func ProtoToStr(msg proto.Message) string
- func ToStructValue(from interface{}) (*structpb.Value, error)
- func UnmarshalNext(d *json.Decoder, m proto.Message) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BufToProto ¶
BufToProto, unmarshal buffer to proto message instance.
func FromStructValue ¶ added in v0.8.7
Attempts to map a *structpb.Struct to an interface{}, using mapstructure to map from the struct's fields to 'to'
func ProtoToBuf ¶
ProtoToBuf, marshal proto message to buffer.
func ProtoToStr ¶
ProtoToStr, marshal proto message to string representation.
func ToStructValue ¶ added in v0.8.7
Attempts to construct a structpb.Struct from an interface{}, using mapstructure to map from 'from' to map[string]interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.