protobuf

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustProtoJSONMarshal

func MustProtoJSONMarshal(msg proto.Message) []byte

func MustProtoJSONUnmarshal

func MustProtoJSONUnmarshal(b []byte, msg proto.Message)

func MustProtoMarshal

func MustProtoMarshal(msg proto.Message) []byte

func MustProtoUnmarshal

func MustProtoUnmarshal(b []byte, msg proto.Message)

Types

type MustProtobufHandler

type MustProtobufHandler struct {
	// contains filtered or unexported fields
}

func NewProtobufHandler

func NewProtobufHandler(isJSON bool) *MustProtobufHandler

func (*MustProtobufHandler) Marshal

func (h *MustProtobufHandler) Marshal(msg proto.Message) []byte

func (*MustProtobufHandler) Unmarshal

func (h *MustProtobufHandler) Unmarshal(b []byte, msg proto.Message)

Jump to

Keyboard shortcuts

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