raw_proto

package
v1.42.10 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProtobufCodec

func NewProtobufCodec() encoding.Codec

Types

type ProtobufCodec

type ProtobufCodec struct{}

ProtobufCodec is the protobuf impl of Codec interface

func (*ProtobufCodec) Marshal

func (p *ProtobufCodec) Marshal(v interface{}) ([]byte, error)

Marshal serialize interface @v to bytes

func (*ProtobufCodec) Name

func (p *ProtobufCodec) Name() string

func (*ProtobufCodec) Unmarshal

func (p *ProtobufCodec) Unmarshal(data []byte, v interface{}) error

Unmarshal deserialize @data to interface

Jump to

Keyboard shortcuts

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