pb

package
v0.21.7 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: Apache-2.0 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 proto message instance.

func Contains added in v0.21.2

func Contains[T proto.Message](collection []T, element T) bool

func NewStruct

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 proto message to buffer.

func ProtoToStr

func ProtoToStr(msg proto.Message) string

ProtoToStr, marshal proto message to string representation.

func UnmarshalNext

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

UnmarshalNext, JSON decoder helper function to unmarshal next message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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