Documentation
¶
Index ¶
- func ConvertInterfaceToProtobuf(value any) (*anypb.Any, error)
- func ConvertPBAnyToInterface(pbAny *anypb.Any) (any, error)
- func DoublePtrFromPBWrapper(wrapper *wrapperspb.DoubleValue) *float64
- func DoublePtrToPBWrapper(value *float64) *wrapperspb.DoubleValue
- func IntPtrFromPBWrapper(wrapper *wrapperspb.Int64Value) *int
- func IntPtrToPBWrapper(value *int) *wrapperspb.Int64Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertInterfaceToProtobuf ¶
ConvertInterfaceToProtobuf converts an interface{} to a protobuf message any.
func ConvertPBAnyToInterface ¶
ConvertPBAnyToInterface converts a protobuf message any to an interface{}.
func DoublePtrFromPBWrapper ¶
func DoublePtrFromPBWrapper(wrapper *wrapperspb.DoubleValue) *float64
DoublePtrFromPBWrapper converts a protobuf wrapperspb.DoubleValue to a *float64.
func DoublePtrToPBWrapper ¶
func DoublePtrToPBWrapper(value *float64) *wrapperspb.DoubleValue
DoublePtrToPBWrapper converts a *float64 to a protobuf wrapperspb.DoubleValue.
func IntPtrFromPBWrapper ¶
func IntPtrFromPBWrapper(wrapper *wrapperspb.Int64Value) *int
IntPtrFromPBWrapper converts a protobuf wrapperspb.Int64Value to a *int.
func IntPtrToPBWrapper ¶
func IntPtrToPBWrapper(value *int) *wrapperspb.Int64Value
IntPtrToPBWrapper converts a *int to a protobuf wrapperspb.Int64Value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.