Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

gzip

v1.14.0
github.com/bglmmz/grpc/encoding/gzip

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

4 matches

Top ↑

Package gzip implements and registers the gzip compressor during the initialization. This package is EXPERIMENTAL.

Constants

Name

const Name = "gzip"

Name is the name registered for the gzip compressor.

Functions

SetLevel

func SetLevel(level int) error

SetLevel updates the registered gzip compressor to use the compression level specified (gzip.HuffmanOnly is not supported). NOTE: this function must only be called during initialization time (i.e. in an init() function), and is not thread-safe.

The error returned will be nil if the specified level is valid.

Dependency graph