grpc: google.golang.org/grpc/encoding/gzip Index | Files

package gzip

import "google.golang.org/grpc/encoding/gzip"

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

Index

Package Files

gzip.go

Constants

const Name = "gzip"

Name is the name registered for the gzip compressor.

func SetLevel Uses

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.

Package gzip imports 6 packages (graph) and is imported by 31 packages. Updated 2018-03-20. Refresh now. Tools for package owners.