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
- type MultiAnyResolver
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 ¶
type MultiAnyResolver ¶ added in v1.5.10
type MultiAnyResolver struct{}
Click to show internal directories.
Click to hide internal directories.