protoutils

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(m proto.Message) ([]byte, error)

func MarshalPretty

func MarshalPretty(m proto.Message) ([]byte, error)

func UnmarshalPartial

func UnmarshalPartial(b []byte, m proto.Message) error

Types

type ProtoEnum added in v0.9.4

type ProtoEnum interface {
	Number() protoreflect.EnumNumber
}

type ProtoMessage added in v0.9.3

type ProtoMessage[T any] interface {
	*T
	proto.Message
}

type ProtoMessageWithMerge added in v0.9.4

type ProtoMessageWithMerge[T any] interface {
	*T
	proto.Message

	Merge(in *T) *T
}

Jump to

Keyboard shortcuts

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