protobuf

package
v0.74.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package protobuf is a concrete implementation of the encoding abstractions.

Index

Constants

View Source
const (
	// Type definition.
	Type string = "application/x-protobuf"
	// TypeGoogle definition.
	TypeGoogle string = "application/x-google-protobuf"
)

Variables

This section is empty.

Functions

func Decode

func Decode(data io.Reader, v interface{}) error

Decode a reader input into a protobuf model.

func DecodeRaw

func DecodeRaw(data []byte, v interface{}) error

DecodeRaw a byte slice input into a protobuf model.

func Encode

func Encode(v interface{}) ([]byte, error)

Encode a protobuf model into a byte slice.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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