Back to godoc.org
google.golang.org/grpc/encoding/gzip

package gzip

v1.29.1
Latest Go to latest
Published: Apr 23, 2020 | License: Apache-2.0 | Module: google.golang.org/grpc

Overview

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

Index

Constants

const Name = "gzip"

Name is the name registered for the gzip compressor.

func 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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier