gzip

package
v6.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: Apache-2.0 Imports: 7 Imported by: 2

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.

Jump to

Keyboard shortcuts

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