gzip

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Is

func Is(id byte) bool

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
}

func (*Gzip) ID

func (that *Gzip) ID() byte

ID returns transfer filter id.

func (*Gzip) Name

func (that *Gzip) Name() string

Name returns transfer filter name.

func (*Gzip) OnPack

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

OnPack performs filtering on packing.

func (*Gzip) OnUnpack

func (that *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