proto

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

Package proto defines the protobuf codec. Importing this package will register the codec.

Index

Constants

View Source
const Name = "proto"

Name is the name registered for the proto compressor.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec added in v1.0.5

type Codec struct{}

Codec is a Codec implementation with protobuf. It is the default Codec for Transport.

func (Codec) Marshal added in v1.0.5

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

func (Codec) Name added in v1.0.5

func (Codec) Name() string

func (Codec) Unmarshal added in v1.0.5

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

Jump to

Keyboard shortcuts

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