encoding

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryDecoder

type BinaryDecoder interface {
	Read(io.Reader) error
}

type BinaryEncoder

type BinaryEncoder interface {
	Write(io.Writer) error
}

type Capability

type Capability interface {
	MetaObjectCache() bool
	ObjectPtrUID() bool
}

func DefaultCap

func DefaultCap() Capability

type CustomDecoder

type CustomDecoder interface {
	Decode(Decoder) error
}

type CustomEncoder

type CustomEncoder interface {
	Encode(Encoder) error
}

type Decoder

type Decoder interface {
	Decode(interface{}) error
}

func NewDecoder

func NewDecoder(c Capability, r io.Reader) Decoder

func NewGobDecoder

func NewGobDecoder(r io.Reader) Decoder

func NewJSONDecoder

func NewJSONDecoder(d []byte) Decoder

type Encoder

type Encoder interface {
	Encode(interface{}) error
}

func NewEncoder

func NewEncoder(c Capability, w io.Writer) Encoder

func NewGobEncoder

func NewGobEncoder(w io.Writer) Encoder

func NewJSONEncoder

func NewJSONEncoder(w io.Writer) Encoder

type Writer

type Writer interface {
	Write(w io.Writer) error
}

Jump to

Keyboard shortcuts

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