gogoprotobuf

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Overview

Package gogoprotobuf implements protobuf codec using gogoproto

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotProtobufMessage = errors.New("invalid not protobuf message")
)

Functions

This section is empty.

Types

type Codec

type Codec struct{}

func (*Codec) Marshal

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

func (*Codec) NewDecoder

func (c *Codec) NewDecoder(r io.Reader) codec.Decoder

func (*Codec) NewEncoder

func (c *Codec) NewEncoder(w io.Writer) codec.Encoder

func (*Codec) Type

func (c *Codec) Type() arhatgopb.CodecType

func (*Codec) Unmarshal

func (c *Codec) Unmarshal(data []byte, out interface{}) error

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func (*Decoder) Decode

func (dec *Decoder) Decode(out interface{}) error

type Encoder

type Encoder struct {
	// contains filtered or unexported fields
}

func (*Encoder) Encode

func (enc *Encoder) Encode(any interface{}) error

Jump to

Keyboard shortcuts

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