serializer

package
v0.0.0-...-cfd203f Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProtobufToJSON

func ProtobufToJSON(message proto.Message) (string, error)

ProtobufToJSON converts protocol buffer message to JSON string

func ReadProtobufFromBinaryFile

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

ReadProtobufFromBinaryFile reads data from the binary file

func WriteProtobufToBinaryFile

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

WriteProtobufToBinaryFile writes data to binary file

func WriteProtobufToJSONFile

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

WriteProtobufToJSONFile writes data 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