gob

package
v0.0.0-...-c475b33 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressName

func CompressName(cp CompressType) (name string)

CompressName -

Types

type CompressType

type CompressType int

CompressType -

const (
	//CompresTypeNone -
	CompresTypeNone CompressType = iota
	//CompresTypeZlib -
	CompresTypeZlib
	//CompressTypeGzip -
	CompressTypeGzip
)

func GetCompressType

func GetCompressType(cp string) (name CompressType)

GetCompressType -

type Decoder

type Decoder struct {
	CompressType CompressType
}

Decoder -

func NewDecoder

func NewDecoder(cp CompressType) *Decoder

NewDecoder -

func (*Decoder) Decode

func (cc *Decoder) Decode(raw []byte, data interface{}) error

Decode -

type Encoder

type Encoder struct {
	CompressType CompressType
}

Encoder -

func NewEncoder

func NewEncoder(cp CompressType) *Encoder

NewEncoder -

func (*Encoder) Encode

func (cc *Encoder) Encode(data interface{}) []byte

Encode -

Jump to

Keyboard shortcuts

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