proto

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(v any) ([]byte, error)

func Name

func Name() string

func Unmarshal

func Unmarshal(data []byte, v any) error

Types

type Codec

type Codec struct{}

Codec is a Codec implementation with protobuf.

func New

func New() Codec

New returns a new Codec

func (Codec) Marshal

func (Codec) Marshal(v any) ([]byte, error)

func (Codec) Name

func (Codec) Name() string

func (Codec) Unmarshal

func (Codec) Unmarshal(data []byte, v any) error

Jump to

Keyboard shortcuts

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