gzip

package
v5.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reg

func Reg(id byte, name string, level int)

Reg registers a gzip filter for transfer.

Types

type Gzip

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

Gzip compression filter

func (*Gzip) ID

func (g *Gzip) ID() byte

ID returns transfer filter id.

func (*Gzip) Name

func (g *Gzip) Name() string

ID returns transfer filter name.

func (*Gzip) OnPack

func (g *Gzip) OnPack(src []byte) ([]byte, error)

OnPack performs filtering on packing.

func (*Gzip) OnUnpack

func (g *Gzip) OnUnpack(src []byte) ([]byte, error)

OnUnpack performs filtering on unpacking.

Jump to

Keyboard shortcuts

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