protoconv

package
v0.0.0-...-d547b85 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MessageToAny

func MessageToAny(msg proto.Message) *anypb.Any

MessageToAny converts from proto message to proto Any

func MessageToAnyWithError

func MessageToAnyWithError(msg proto.Message) (*anypb.Any, error)

MessageToAnyWithError converts from proto message to proto Any

func SilentlyUnmarshalAny

func SilentlyUnmarshalAny[T any](a *anypb.Any) *T

func TypedStructWithFields

func TypedStructWithFields(typeURL string, fields map[string]interface{}) *anypb.Any

func UnmarshalAny

func UnmarshalAny[T any](a *anypb.Any) (*T, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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