Documentation ¶
Index ¶
- func Equals[T proto.Message](a T, b T) bool
- func MessageToAny(msg proto.Message) *anypb.Any
- func MessageToAnyWithError(msg proto.Message) (*anypb.Any, error)
- func SilentlyUnmarshalAny[T any](a *anypb.Any) *T
- func TypedStructWithFields(typeURL string, fields map[string]interface{}) *anypb.Any
- func UnmarshalAny[T any](a *anypb.Any) (*T, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equals ¶
Equals checks if two message are equal. This is preferred to proto.Equals since it can use vtprotobuf implementations and is more type safe
func MessageToAny ¶
MessageToAny converts from proto message to proto Any
func MessageToAnyWithError ¶
MessageToAnyWithError converts from proto message to proto Any
func SilentlyUnmarshalAny ¶
func TypedStructWithFields ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.