Documentation ¶
Index ¶
- Variables
- func AnyGogoToPb(structuredData *types.Any) (*any.Any, error)
- func AnyPbToGogo(structuredData *any.Any) (*types.Any, error)
- func MarshalBytes(pb proto.Message) ([]byte, error)
- func MarshalBytesEmitZeroValues(pb proto.Message) ([]byte, error)
- func MarshalStruct(m proto.Message) (*structpb.Struct, error)
- func MarshalStructEmitZeroValues(m proto.Message) (*structpb.Struct, error)
- func StructGogoToPb(structuredData *types.Struct) (*structpb.Struct, error)
- func StructPbToGogo(structuredData *structpb.Struct) (*types.Struct, error)
- func UnmarshalStruct(structuredData *structpb.Struct, into proto.Message) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NilStructError = eris.New("cannot unmarshal nil struct")
)
Functions ¶
func MarshalStruct ¶
this function is designed for converting go object (that is not a proto.Message) into a pb Struct, based on json struct tags
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.