serializer

package
v0.0.0-...-4d5bab8 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONToProtobufMessage

func JSONToProtobufMessage(data string, message proto.Message) error

JSONToProtobufMessage converts JSON string to protocol buffer message

func ProtobufToJSON

func ProtobufToJSON(message proto.Message) ([]byte, error)

ProtobufToJSON converts protocol buffer message to JSON string

func ReadProtobufFromBinaryFile

func ReadProtobufFromBinaryFile(filename string, message proto.Message) error

ReadProtobufFromBinaryFile reads protocol buffer message from binary file

func WriteProtobufToBinaryFile

func WriteProtobufToBinaryFile(message proto.Message, filename string) error

WriteProtobufToBinaryFile writes protocol buffer message to binary file

func WriteProtobufToJSONFile

func WriteProtobufToJSONFile(message proto.Message, filename string) error

WriteProtobufToJSONFile writes protocol buffer message to JSON file

Types

This section is empty.

Jump to

Keyboard shortcuts

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