proto

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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)

func UnmarshalJSON

func UnmarshalJSON(data []byte, conf proto.Message) error

UnmarshalJSON should be used instead of protojson.Unmarshal. The first one contains custom options.

Types

This section is empty.

Jump to

Keyboard shortcuts

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