gzip

package
Version: v6.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Is

func Is(id byte) bool

Is determines if the id is gzip.

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) (dest []byte, err error)

OnUnpack performs filtering on unpacking.

Source Files

Jump to

Keyboard shortcuts

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