pb

package
v0.20.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BufToProto

func BufToProto(r io.Reader, msg proto.Message) error

BufToProto unmarshal buffer to protomessage.

func BufToValue added in v0.8.3

func BufToValue(r io.Reader) (*structpb.Value, error)

BufToValue unmarshal buffer to value struct.

func NewStruct added in v0.8.3

func NewStruct() *structpb.Struct

NewStruct, returns *structpb.Struct instance with initialized Fields map.

func ProtoToBuf

func ProtoToBuf(w io.Writer, msg proto.Message) error

ProtoToBuf marshal protomessage to buffer.

func ProtoToStr

func ProtoToStr(msg proto.Message) string

ProtoToStr marshal protomessage to string.

func UnmarshalNext

func UnmarshalNext(d *json.Decoder, m proto.Message) error

UnmarshalNext unmarshal next protomessage in stream.

func ValueToBuf added in v0.8.3

func ValueToBuf(w io.Writer, v *structpb.Value) error

ValueToBuf marshal value struct to buffer.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL