proto

package
v0.0.0-...-fc59d6d Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

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

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 Coder

type Coder struct{}

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

func GetCoder

func GetCoder() Coder

func (Coder) Marshal

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

func (Coder) Name

func (Coder) Name() string

func (Coder) Unmarshal

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

Jump to

Keyboard shortcuts

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