proto

package
v0.27.0-dev Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package proto provides conversion functions to protobuf format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BufferToProto

func BufferToProto(buf *bytes.Buffer, message proto.Message, format string) error

BufferToProto tries to unmarshal a json/yaml buffer of bytes to a protocol buffer message.

func InputFileToProto

func InputFileToProto(filePath string, outResource proto.Message) error

InputFileToProto reads a json/yaml/stdin and converts it to protobuf format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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