codecpb

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package codecpb implements protobuf codec for libext

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) types.Decoder

func (*Codec) NewEncoder

func (c *Codec) NewEncoder(w io.Writer) types.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